Skip to content

Add failing test case to illustrate #312 #1159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Sep 22, 2022

Refs #312.

$ pytest tests/typecheck/test_settings.yml::imported_from_models
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0 -- /home/anders/python/django-stubs/.direnv/python-3.10.6/bin/python
cachedir: .pytest_cache
rootdir: /home/anders/python/django-stubs, configfile: pytest.ini
plugins: mypy-plugins-1.10.0
collected 1 item                                                               

tests/typecheck/test_settings.yml::imported_from_models FAILED

=================================== FAILURES ===================================
_____________________________ imported_from_models _____________________________
/home/anders/python/django-stubs/tests/typecheck/test_settings.yml:60: 
E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: 
E   Actual:
E     main:4: note: Revealed type is "builtins.list" (diff)
E   Expected:
E     main:4: note: Revealed type is "builtins.list[builtins.int]" (diff)
E   Alignment of first line difference:
E     E: ...ed type is "builtins.list[builtins.int]"
E     A: ...ed type is "builtins.list"
E                                    ^
=========================== short test summary info ============================
FAILED tests/typecheck/test_settings.yml::imported_from_models - 
============================== 1 failed in 3.52s ===============================

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.

1 participant