Skip to content

Conversation

@ljodal
Copy link
Contributor

@ljodal ljodal commented Jun 23, 2022

This test case reproduces the issues reported in #709 (comment)

@ljodal
Copy link
Contributor Author

ljodal commented Jun 23, 2022

Danmit, turns out it doesn't reproduce on CI 😢 I'm pretty sure that's somehow related to --incremental, as I had some issues with that in a test project when I was testing locally as well. I have a test repo here where it actually reproduces: https://github.com/ljodal/django-stubs-regression-test

@ljodal ljodal closed this Jun 23, 2022
@ljodal ljodal deleted the reproduce-sequence-not-defined-error branch June 23, 2022 20:37
@ljodal
Copy link
Contributor Author

ljodal commented Jun 23, 2022

Just for future reference, this is what I see when running this test locally:

→ pytest -k from_queryset_custom_auth_user_model
=========================================================== test session starts ============================================================
platform darwin -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0 -- /Users/sigurd/Developer/django-stubs/.venv/bin/python3.10
cachedir: .pytest_cache
rootdir: /Users/sigurd/Developer/django-stubs, configfile: pytest.ini, testpaths: ./tests, ./django_stubs_ext/tests
plugins: mypy-plugins-1.9.3
collected 300 items / 299 deselected / 1 selected                                                                                          

tests/typecheck/managers/querysets/test_from_queryset.yml::from_queryset_custom_auth_user_model FAILED

================================================================= FAILURES =================================================================
___________________________________________________ from_queryset_custom_auth_user_model ___________________________________________________
/Users/sigurd/Developer/django-stubs/tests/typecheck/managers/querysets/test_from_queryset.yml:390: 
E   pytest_mypy_plugins.utils.TypecheckAssertionError: Output is not expected: 
E   Actual:
E     this_name_must_be_unique/models:106: error: Name "Sequence" is not defined (diff)
E   Expected:
E     (empty)
========================================================= short test summary info ==========================================================
FAILED tests/typecheck/managers/querysets/test_from_queryset.yml::from_queryset_custom_auth_user_model - 
==================================================== 1 failed, 299 deselected in 1.80s =====================================================

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