Removes references to local field in connector tests

This commit is contained in:
Mouse Reeve 2021-09-16 12:29:02 -07:00
parent beb482f1db
commit 4cdf895d77
7 changed files with 2 additions and 8 deletions

View file

@ -53,7 +53,6 @@ class AbstractConnector(TestCase):
self.assertEqual(connector.isbn_search_url, "https://example.com/isbn?q=")
self.assertIsNone(connector.name)
self.assertEqual(connector.identifier, "example.com")
self.assertFalse(connector.local)
@responses.activate
def test_search(self):

View file

@ -25,7 +25,6 @@ class ConnectorManager(TestCase):
self.connector = models.Connector.objects.create(
identifier="test_connector",
priority=1,
local=True,
connector_file="self_connector",
base_url="http://test.com/",
books_url="http://test.com/",
@ -36,7 +35,6 @@ class ConnectorManager(TestCase):
self.remote_connector = models.Connector.objects.create(
identifier="test_connector_remote",
priority=1,
local=False,
connector_file="bookwyrm_connector",
base_url="http://fake.ciom/",
books_url="http://fake.ciom/",

View file

@ -16,7 +16,6 @@ class SelfConnector(TestCase):
models.Connector.objects.create(
identifier=DOMAIN,
name="Local",
local=True,
connector_file="self_connector",
base_url="https://%s" % DOMAIN,
books_url="https://%s/book" % DOMAIN,

View file

@ -42,7 +42,6 @@ class GoodreadsImport(TestCase):
models.Connector.objects.create(
identifier=DOMAIN,
name="Local",
local=True,
connector_file="self_connector",
base_url="https://%s" % DOMAIN,
books_url="https://%s/book" % DOMAIN,

View file

@ -43,7 +43,6 @@ class LibrarythingImport(TestCase):
models.Connector.objects.create(
identifier=DOMAIN,
name="Local",
local=True,
connector_file="self_connector",
base_url="https://%s" % DOMAIN,
books_url="https://%s/book" % DOMAIN,

View file

@ -30,7 +30,7 @@ class GetStartedViews(TestCase):
remote_id="https://example.com/book/1",
)
models.Connector.objects.create(
identifier="self", connector_file="self_connector", local=True
identifier="self", connector_file="self_connector"
)
models.SiteSettings.objects.create()

View file

@ -37,7 +37,7 @@ class Views(TestCase):
parent_work=self.work,
)
models.Connector.objects.create(
identifier="self", connector_file="self_connector", local=True
identifier="self", connector_file="self_connector"
)
models.SiteSettings.objects.create()