mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-30 13:31:08 +00:00
Removes references to local field in connector tests
This commit is contained in:
parent
beb482f1db
commit
4cdf895d77
7 changed files with 2 additions and 8 deletions
|
@ -53,7 +53,6 @@ class AbstractConnector(TestCase):
|
||||||
self.assertEqual(connector.isbn_search_url, "https://example.com/isbn?q=")
|
self.assertEqual(connector.isbn_search_url, "https://example.com/isbn?q=")
|
||||||
self.assertIsNone(connector.name)
|
self.assertIsNone(connector.name)
|
||||||
self.assertEqual(connector.identifier, "example.com")
|
self.assertEqual(connector.identifier, "example.com")
|
||||||
self.assertFalse(connector.local)
|
|
||||||
|
|
||||||
@responses.activate
|
@responses.activate
|
||||||
def test_search(self):
|
def test_search(self):
|
||||||
|
|
|
@ -25,7 +25,6 @@ class ConnectorManager(TestCase):
|
||||||
self.connector = models.Connector.objects.create(
|
self.connector = models.Connector.objects.create(
|
||||||
identifier="test_connector",
|
identifier="test_connector",
|
||||||
priority=1,
|
priority=1,
|
||||||
local=True,
|
|
||||||
connector_file="self_connector",
|
connector_file="self_connector",
|
||||||
base_url="http://test.com/",
|
base_url="http://test.com/",
|
||||||
books_url="http://test.com/",
|
books_url="http://test.com/",
|
||||||
|
@ -36,7 +35,6 @@ class ConnectorManager(TestCase):
|
||||||
self.remote_connector = models.Connector.objects.create(
|
self.remote_connector = models.Connector.objects.create(
|
||||||
identifier="test_connector_remote",
|
identifier="test_connector_remote",
|
||||||
priority=1,
|
priority=1,
|
||||||
local=False,
|
|
||||||
connector_file="bookwyrm_connector",
|
connector_file="bookwyrm_connector",
|
||||||
base_url="http://fake.ciom/",
|
base_url="http://fake.ciom/",
|
||||||
books_url="http://fake.ciom/",
|
books_url="http://fake.ciom/",
|
||||||
|
|
|
@ -16,7 +16,6 @@ class SelfConnector(TestCase):
|
||||||
models.Connector.objects.create(
|
models.Connector.objects.create(
|
||||||
identifier=DOMAIN,
|
identifier=DOMAIN,
|
||||||
name="Local",
|
name="Local",
|
||||||
local=True,
|
|
||||||
connector_file="self_connector",
|
connector_file="self_connector",
|
||||||
base_url="https://%s" % DOMAIN,
|
base_url="https://%s" % DOMAIN,
|
||||||
books_url="https://%s/book" % DOMAIN,
|
books_url="https://%s/book" % DOMAIN,
|
||||||
|
|
|
@ -42,7 +42,6 @@ class GoodreadsImport(TestCase):
|
||||||
models.Connector.objects.create(
|
models.Connector.objects.create(
|
||||||
identifier=DOMAIN,
|
identifier=DOMAIN,
|
||||||
name="Local",
|
name="Local",
|
||||||
local=True,
|
|
||||||
connector_file="self_connector",
|
connector_file="self_connector",
|
||||||
base_url="https://%s" % DOMAIN,
|
base_url="https://%s" % DOMAIN,
|
||||||
books_url="https://%s/book" % DOMAIN,
|
books_url="https://%s/book" % DOMAIN,
|
||||||
|
|
|
@ -43,7 +43,6 @@ class LibrarythingImport(TestCase):
|
||||||
models.Connector.objects.create(
|
models.Connector.objects.create(
|
||||||
identifier=DOMAIN,
|
identifier=DOMAIN,
|
||||||
name="Local",
|
name="Local",
|
||||||
local=True,
|
|
||||||
connector_file="self_connector",
|
connector_file="self_connector",
|
||||||
base_url="https://%s" % DOMAIN,
|
base_url="https://%s" % DOMAIN,
|
||||||
books_url="https://%s/book" % DOMAIN,
|
books_url="https://%s/book" % DOMAIN,
|
||||||
|
|
|
@ -30,7 +30,7 @@ class GetStartedViews(TestCase):
|
||||||
remote_id="https://example.com/book/1",
|
remote_id="https://example.com/book/1",
|
||||||
)
|
)
|
||||||
models.Connector.objects.create(
|
models.Connector.objects.create(
|
||||||
identifier="self", connector_file="self_connector", local=True
|
identifier="self", connector_file="self_connector"
|
||||||
)
|
)
|
||||||
models.SiteSettings.objects.create()
|
models.SiteSettings.objects.create()
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Views(TestCase):
|
||||||
parent_work=self.work,
|
parent_work=self.work,
|
||||||
)
|
)
|
||||||
models.Connector.objects.create(
|
models.Connector.objects.create(
|
||||||
identifier="self", connector_file="self_connector", local=True
|
identifier="self", connector_file="self_connector"
|
||||||
)
|
)
|
||||||
models.SiteSettings.objects.create()
|
models.SiteSettings.objects.create()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue