mercredi 8 janvier 2020

Fixing the error: django.db.utils.OperationalError: no such table: auth_group

I'm trying to run some simple tests with command: python manage.py test

When I do it, I get the error saying

File "/Users/petka/.local/share/virtualenvs/movie_platform-wu_Kht1X/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 394, in execute return Database.Cursor.execute(self, query) django.db.utils.OperationalError: no such table: auth_group

Anyone knows how to fix this?

movies_app/tests.py

    from django.test import TestCase

    class SmokeTest(TestCase):

    def test_bad_maths(self):
        self.assertEqual(1 + 1, 3)

Aucun commentaire:

Enregistrer un commentaire