Skip to content

Commit

Permalink
chore: make test less fragile
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Sep 14, 2023
1 parent 0a19c8c commit 53a1ae9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ def test_walk_through_apiary(mock_subproc_popen):
mock_subproc_popen.return_value = process_mock
dirs = node.walk_through_apiary(FIXTURES / "node_apiary", "src/apis/**/*")
assert not mock_subproc_popen.called
assert re.search("src/apis/admin", dirs[0])
assert re.search("src/apis/docs", dirs[1])
assert re.search(
"(?:% s)" % "|".join(["src/apis/admin", "src/apis/docs"]),
"(?:% s)" % "|".join(dirs),
)
assert len(dirs) == 2


Expand Down

0 comments on commit 53a1ae9

Please sign in to comment.