Skip to content

Commit

Permalink
change for django string tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ZStriker19 committed Feb 3, 2025
1 parent d563bb6 commit bd79134
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/contrib/django/test_django.py
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,8 @@ def test_django_use_handler_resource_format_env(client, test_spans):
"python",
"-c",
(
"from ddtrace import config, patch_all; patch_all(); "
"from ddtrace import config "
"from ddtrace._monkey import _patch_all; _patch_all(); "
"import django; "
"assert config.django.use_handler_resource_format; print('Test success')"
),
Expand All @@ -2037,7 +2038,8 @@ def test_django_use_handler_with_url_name_resource_format_env(client, test_spans
"python",
"-c",
(
"from ddtrace import config, patch_all; patch_all(); "
"from ddtrace import config "
"from ddtrace._monkey import _patch_all; _patch_all(); "
"import django; "
"assert config.django.use_handler_with_url_name_resource_format; print('Test success')"
),
Expand Down Expand Up @@ -2117,7 +2119,8 @@ def test_django_use_legacy_resource_format_env(client, test_spans):
"python",
"-c",
(
"from ddtrace import config, patch_all; patch_all(); "
"from ddtrace import config "
"from ddtrace._monkey import _patch_all; _patch_all(); "
"import django; "
"assert config.django.use_legacy_resource_format; print('Test success')"
),
Expand Down

0 comments on commit bd79134

Please sign in to comment.