Skip to content

Commit

Permalink
Ignore spotchem file
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonski committed Nov 11, 2024
1 parent ff17213 commit 7440263
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/senaite/astm/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
from senaite.astm.constants import ACK
from senaite.astm.constants import ENQ

IGNORE_INSTRUMENT_FILES = [
"spotchem_el.txt" # Not valid ASTM (see PR #19)
]


class ASTMTestBase(IsolatedAsyncioTestCase):
"""Base Test Class
Expand All @@ -27,7 +31,9 @@ def instrument_files(self):
"""Returns all instrument files from the data directory
"""
path = "{}/*.txt".format(self.data_dir)
return glob(path)
files = glob(path)
return filter(lambda x: os.path.basename(x)
not in IGNORE_INSTRUMENT_FILES, files)

def get_instrument_file_path(self, filename):
"""Returns the instrument file path
Expand Down

0 comments on commit 7440263

Please sign in to comment.