Skip to content

Commit

Permalink
try tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed May 24, 2024
1 parent 4d07d92 commit e22c28d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hgvs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ def _val_xform(v):


_default_config = Config()
_default_config.read_stream(resources.files(__name__) / "_data" / "defaults.ini")
_default_config.read_stream(resources.files(__package__) / "_data" / "defaults.ini")

global_config = copy(_default_config)
5 changes: 2 additions & 3 deletions tests/test_hgvs_grammar_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import re
import unittest
from sys import version_info

import pkg_resources
from importlib import resources

#
# Tests of the grammar
Expand Down Expand Up @@ -52,7 +51,7 @@ def test_parser_test_completeness(self):
"""ensure that all rules in grammar have tests"""

grammar_rule_re = re.compile(r"^(\w+)")
grammar_fn = pkg_resources.resource_filename("hgvs", "_data/hgvs.pymeta")
grammar_fn = resources.files("hgvs") / "_data" / "hgvs.pymeta"
with open(grammar_fn, "r") as f:
grammar_rules = set(r.group(1) for r in filter(None, map(grammar_rule_re.match, f)))

Expand Down

0 comments on commit e22c28d

Please sign in to comment.