[birds] Fix tests
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
from birds.models import BirdingCSVImport
|
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
from django.test import Client
|
from django.test import Client
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
from scrobbles.models import EBirdCSVImport
|
||||||
|
|
||||||
User = get_user_model()
|
User = get_user_model()
|
||||||
|
|
||||||
@ -35,8 +35,8 @@ class TestBirdingCSVImportViews:
|
|||||||
user = User.objects.create(email="birder@example.com")
|
user = User.objects.create(email="birder@example.com")
|
||||||
client = Client()
|
client = Client()
|
||||||
client.force_login(user)
|
client.force_login(user)
|
||||||
imp = BirdingCSVImport.objects.create(user=user)
|
imp = EBirdCSVImport.objects.create(user=user)
|
||||||
response = client.get(
|
response = client.get(
|
||||||
reverse("birds:csv_import_detail", kwargs={"slug": imp.uuid})
|
reverse("scrobbles:ebird-csv-import-detail", kwargs={"slug": imp.uuid})
|
||||||
)
|
)
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|||||||
Reference in New Issue
Block a user