Skip to content

Commit

Permalink
Update validate/test__core.py
Browse files Browse the repository at this point in the history
Since the DOI regex works now there are 2 fewer warnings. Previously it was warning about valid DOIs.
  • Loading branch information
ptth222 committed Mar 6, 2024
1 parent 0050908 commit 2275ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/isatab/validate/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_b_ii_s_3(self):
data_path = path.join(path.dirname(path.abspath(__file__)), '..', '..', 'data', 'tab', 'BII-S-3')
with open(path.join(data_path, 'i_gilbert.txt'), 'r') as data_file:
r = validate(fp=data_file, config_dir=self.default_conf, origin="")
self.assertEqual(len(r['warnings']), 12)
self.assertEqual(len(r['warnings']), 10)

def test_mtbls267(self):
data_path = path.join(path.dirname(path.abspath(__file__)), '..', '..', 'data', 'tab', 'MTBLS267-partial')
Expand Down Expand Up @@ -82,7 +82,7 @@ def is_investigation(investigation_df):
data_path = path.join(path.dirname(path.abspath(__file__)), '..', '..', 'data', 'tab', 'BII-S-3')
with open(path.join(data_path, 'i_gilbert.txt'), 'r') as data_file:
r = validate(data_file, rules=rules)
self.assertEqual(len(r['warnings']), 12)
self.assertEqual(len(r['warnings']), 10)

rule = '12000'
expected_error = {
Expand Down

0 comments on commit 2275ee9

Please sign in to comment.