Skip to content

Commit

Permalink
chore: make walk_through_apiary_test more resilient (#1859)
Browse files Browse the repository at this point in the history
* test

* chore: make test less fragile
  • Loading branch information
sofisl authored Sep 15, 2023
1 parent a9808dd commit fa95f29
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 fa95f29

Please sign in to comment.