Skip to content

Commit

Permalink
test: update build iterator expected result counts
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Jun 12, 2023
1 parent 3a44d5f commit ca2f3cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_bug_configuration_iter_build_flags_001(bug_data):
build_flags = list(BugConfiguration.iter_build_flags(bug))

# Check for the expected number of flag combinations
assert len(build_flags) == 4
assert len(build_flags) == 5
# Check that all results are BuildFlags
assert all(isinstance(x, BuildFlags) for x in build_flags)
# Check for duplicates
Expand All @@ -41,7 +41,7 @@ def test_bug_configuration_iter_build_flags_002(bug_data):
build_flags = list(BugConfiguration.iter_build_flags(bug))

# Check for the expected number of flag combinations
assert len(build_flags) == 2
assert len(build_flags) == 3
# Check that all results are BuildFlags
assert all(isinstance(x, BuildFlags) for x in build_flags)
# Check for duplicates
Expand Down Expand Up @@ -95,7 +95,7 @@ def test_browser_configuration_iterate_001(bug_data):
Path(tmp_path / "3.js").touch()

bug = EnhancedBug(None, **bug_data)
assert len(list(BrowserConfiguration.iterate(bug, tmp_path))) == 8
assert len(list(BrowserConfiguration.iterate(bug, tmp_path))) == 16


def test_js_configuration_iterate_001(mocker, bug_data):
Expand All @@ -111,4 +111,4 @@ def test_js_configuration_iterate_001(mocker, bug_data):
)
mock.return_value = []
bug = EnhancedBug(None, **bug_data)
assert len(list(JSConfiguration.iterate(bug, tmp_path))) == 6
assert len(list(JSConfiguration.iterate(bug, tmp_path))) == 12

0 comments on commit ca2f3cd

Please sign in to comment.