Skip to content

Commit 82f7b24

Browse files
committed
fix(integration_tests): fix integration test on limit
1 parent 84eec7f commit 82f7b24

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/integration_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,20 +209,21 @@ def test_src_fingerprint_bitbucket_no_object_specified(title, cmd_args, number_o
209209
)
210210
output_repos = get_output_repos("fingerprints.jsonl")
211211
os.remove("fingerprints.jsonl")
212-
assert len(output_repos) == number_of_expected_output_repos
212+
assert f"Collected {number_of_expected_output_repos} repos," in output.stdout.decode()
213+
assert len(output_repos) < number_of_expected_output_repos
213214

214215

215216
@pytest.mark.parametrize(
216217
"title, cmd_args, expected_output_repos", [
217218
(
218219
"Get all repos accesible to integration tests token for project 'src fingerprint'",
219-
["--limit", "10","--object", "src fingerprint"],
220+
["--object", "src fingerprint"],
220221
{"src fingerprint test", "main-test-repo"}
221222
),
222223
]
223224
)
224225
def test_src_fingerprint_bitbucket_object_specified(title, cmd_args, expected_output_repos):
225-
output = run_src_fingerprint(
226+
run_src_fingerprint(
226227
provider="bitbucket",
227228
token = BITBUCKET_INTEGRATION_TESTS_TOKEN,
228229
args=cmd_args+["--provider-url", BITBUCKET_INTEGRATION_TESTS_URL]

0 commit comments

Comments
 (0)