juanifioren/django-oidc-provider

test_makemigrations_output fails

Closed this issue · 1 comments

mcepl commented

While running the test suite when packaging this for openSUSE/Factory we have this test failing (using Django 4.0.2, pytest 6.2.5, pytest-django 4.5.2):

[   62s] ___________________ CommandsTest.test_makemigrations_output ____________________
[   62s]
[   62s] self = <test_commands.CommandsTest testMethod=test_makemigrations_output>
[   62s]
[   62s]     def test_makemigrations_output(self):
[   62s]         out = StringIO()
[   62s]         call_command("makemigrations", "oidc_provider", stdout=out)
[   62s] >       self.assertIn("No changes detected in app", out.getvalue())
[   62s] E       AssertionError: 'No changes detected in app' not found in "Migrations for 'oidc_provider':\n  /home/abuild/rpmbuild/BUILDROOT/python-django-oidc-provider-0.7.0-0.x86_64/usr/lib/python3.9/site-packages/oidc_provider/migrations/0028_alter_client_id_alter_code_id_alter_responsetype_id_and_more.py\n    - Alter field id on client\n    - Alter field id on code\n    - Alter field id on responsetype\n    - Alter field id on rsakey\n    - Alter field id on token\n    - Alter field id on userconsent\n"

Complete build log with all packages used and steps taken to reproduce.

Closing since our tox matrix is now including Django 4.0.