Skip to content

Commit 04c9ed3

Browse files
committed
Python: Fix reference in unit test
The referenced file lives in the internal repo, so this is perhaps a bit of a hack, but I think it should be fine in the short run.
1 parent cac5a82 commit 04c9ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/extractor/tests/test_patterns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, name):
1212

1313
def test(self):
1414
repo_dir = subprocess.Popen(["git", "rev-parse", "--show-toplevel"], stdout=subprocess.PIPE).communicate()[0].rstrip().decode("utf-8")
15-
test_file_path = os.path.abspath(os.path.join(repo_dir, "unit-tests", "files", "pattern-matching", "patterns.json"))
15+
test_file_path = os.path.abspath(os.path.join(repo_dir, "..", "unit-tests", "files", "pattern-matching", "patterns.json"))
1616
with open(test_file_path) as test_file:
1717
test_patterns = json.load(test_file)
1818
for test_pattern in test_patterns:

0 commit comments

Comments
 (0)