Skip to content

Commit

Permalink
fix tests to account for UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
romainkomorndatadog committed Sep 27, 2024
1 parent 7d51ff3 commit 717261b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/ci_visibility/test_ci_visibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,13 +1019,16 @@ def test_fetch_tests_to_skip_custom_configurations(dd_ci_visibility_agentless_ur
"ddtrace.internal.ci_visibility.git_client._build_git_packfiles_with_details"
) as mock_build_packfiles, mock.patch(
"ddtrace.internal.ci_visibility.recorder.ddconfig", _get_default_civisibility_ddconfig()
), mock.patch(
"ddtrace.internal.ci_visibility._api_client.uuid4", return_value="checkoutmyuuid4"
):
mock_build_packfiles.return_value.__enter__.return_value = "myprefix", _GitSubprocessDetails("", "", 10, 0)
CIVisibility.enable(service="test-service")

expected_data_arg = json.dumps(
{
"data": {
"id": "checkoutmyuuid4",
"type": "test_params",
"attributes": {
"service": "test-service",
Expand All @@ -1052,7 +1055,7 @@ def test_fetch_tests_to_skip_custom_configurations(dd_ci_visibility_agentless_ur
"POST",
"/api/v2/ci/tests/skippable",
expected_data_arg,
20,
timeout=20.0,
)
CIVisibility.disable()

Expand Down

0 comments on commit 717261b

Please sign in to comment.