1
0
Fork 0

Updates migrations

To get the app working again I ran resetdb, let it crash in initdb,
then ran the migration, then re-ran initdb
This commit is contained in:
Mouse Reeve 2020-09-21 08:10:37 -07:00
parent d1f1260640
commit c7883cd615
106 changed files with 279 additions and 279 deletions

View file

@ -1,9 +1,9 @@
''' testing models '''
from django.test import TestCase
from fedireads import models
from fedireads.models.base_model import FedireadsModel
from fedireads.settings import DOMAIN
from bookwyrm import models
from bookwyrm.models.base_model import FedireadsModel
from bookwyrm.settings import DOMAIN
class BaseModel(TestCase):
@ -11,7 +11,7 @@ class BaseModel(TestCase):
instance = FedireadsModel()
instance.id = 1
expected = instance.get_remote_id()
self.assertEqual(expected, 'https://%s/fedireadsmodel/1' % DOMAIN)
self.assertEqual(expected, 'https://%s/bookwyrmmodel/1' % DOMAIN)
def test_remote_id_with_user(self):
user = models.User.objects.create_user(
@ -22,4 +22,4 @@ class BaseModel(TestCase):
expected = instance.get_remote_id()
self.assertEqual(
expected,
'https://%s/user/mouse/fedireadsmodel/1' % DOMAIN)
'https://%s/user/mouse/bookwyrmmodel/1' % DOMAIN)

View file

@ -1,7 +1,7 @@
''' testing models '''
from django.test import TestCase
from fedireads import models, settings
from bookwyrm import models, settings
class Book(TestCase):

View file

@ -2,7 +2,7 @@
import datetime
from django.test import TestCase
from fedireads import models
from bookwyrm import models
class ImportJob(TestCase):

View file

@ -1,7 +1,7 @@
''' testing models '''
from django.test import TestCase
from fedireads import models, settings
from bookwyrm import models, settings
class Status(TestCase):

View file

@ -1,8 +1,8 @@
''' testing models '''
from django.test import TestCase
from fedireads import models
from fedireads.settings import DOMAIN
from bookwyrm import models
from bookwyrm.settings import DOMAIN
class User(TestCase):