Skip to content

Conversation

@SebCorbin
Copy link
Contributor

Any text passed to assertContains and assertNotContains will be casted with str, see https://github.com/django/django/blob/a0323a0c44135c28134672e6e633e5f4a7a68d5d/django/test/testcases.py#L580-L581

Any text passed to assertContains and assertNotContains will be casted with `str`
@github-actions

This comment has been minimized.

Co-authored-by: sobolevn <mail@sobolevn.me>
@sobolevn
Copy link
Member

Hi, looks like your IDE is doing something strange:

django-test-migrations (https://github.com/wemake-services/django-test-migrations)
+ /home/runner/work/django-stubs/django-stubs/django-stubs_to_test/django-stubs/test/testcases.pyi:88: error: Invalid non-printable character U+00A0  [syntax]

Please, fix it :)

@SebCorbin
Copy link
Contributor Author

Ha, I used github web interface so I may have unintentionally entered a NBSP.

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sobolevn sobolevn merged commit 86028e9 into typeddjango:master Oct 22, 2025
43 checks passed
@SebCorbin SebCorbin deleted the patch-1 branch October 22, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants