Skip to content

Commit

Permalink
Test data for a dataset that is manual and ligand bound
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorFWild committed Nov 23, 2023
1 parent 878968f commit e2aae80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from pathlib import Path

import pytest
import yaml

from xchemalign.collator import Collator
from xchemalign.aligner import Aligner
from xchemalign.utils import Constants

def test_collator_upload_1(
constants,
Expand Down Expand Up @@ -55,6 +57,10 @@ def test_collator_upload_2(
else:
c.run(meta)

with open(Path(upload_2_dir) / "meta_collator.yaml", 'r') as f:
new_meta = yaml.safe_load(f)
assert len(meta[Constants.META_XTALS]["Mpro-i0130"][Constants.META_XTAL_FILES].get(Constants.META_BINDING_EVENT, {})) != 0

@pytest.mark.order(after="test_collator_upload_2")
def test_aligner_upload_2(constants, assemblies_file, xtalforms_file, upload_2_dir):
a = Aligner(upload_2_dir, constants.METADATA_FILE, xtalforms_file, assemblies_file, )
Expand Down

0 comments on commit e2aae80

Please sign in to comment.