Commit cf8c0752 authored by Georg Krause's avatar Georg Krause
Browse files

Update dev and test dependencies

parent 64210b02
......@@ -143,7 +143,7 @@ test_api:
- pip3 install -r requirements/local.txt
- pip3 install -r requirements/test.txt
script:
- pytest --cov-report xml --cov=funkwhale_api --junitxml=report.xml tests/
- pytest --cov-report xml --cov-report term-missing --cov=funkwhale_api --junitxml=report.xml tests/
tags:
- docker
artifacts:
......
......@@ -98,7 +98,7 @@ def get_cached_key_pair():
@registry.register
class ActorFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
class ActorFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
public_key = None
private_key = None
preferred_username = factory.Faker("user_name")
......@@ -154,7 +154,7 @@ class ActorFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
@registry.register
class FollowFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
class FollowFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
target = factory.SubFactory(ActorFactory)
actor = factory.SubFactory(ActorFactory)
......@@ -234,7 +234,7 @@ class DeliveryFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
@registry.register
class LibraryFollowFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
class LibraryFollowFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
target = factory.SubFactory(MusicLibraryFactory)
actor = factory.SubFactory(ActorFactory)
......
......@@ -9,7 +9,7 @@ from . import serializers
@registry.register
class InstancePolicyFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
class InstancePolicyFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
summary = factory.Faker("paragraph")
actor = factory.SubFactory(federation_factories.ActorFactory)
block_all = True
......@@ -28,7 +28,7 @@ class InstancePolicyFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
@registry.register
class UserFilterFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
class UserFilterFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
user = factory.SubFactory(users_factories.UserFactory)
target_artist = None
......@@ -42,7 +42,7 @@ class UserFilterFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
@registry.register
class NoteFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
class NoteFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
author = factory.SubFactory(federation_factories.ActorFactory)
target = None
summary = factory.Faker("paragraph")
......@@ -52,7 +52,7 @@ class NoteFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
@registry.register
class ReportFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
class ReportFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
submitter = factory.SubFactory(federation_factories.ActorFactory)
target = factory.SubFactory(music_factories.ArtistFactory)
summary = factory.Faker("paragraph")
......@@ -77,7 +77,7 @@ class ReportFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
@registry.register
class UserRequestFactory(NoUpdateOnCreate, factory.DjangoModelFactory):
class UserRequestFactory(NoUpdateOnCreate, factory.django.DjangoModelFactory):
submitter = factory.SubFactory(federation_factories.ActorFactory, local=True)
class Meta:
......
# Local development dependencies go here
coverage~=5.5.0
django_coverage_plugin~=1.8.0
factory_boy~=2.12.0
django_coverage_plugin~=2.0.0
factory_boy~=3.2.0
# django-debug-toolbar that works with Django 1.5+
django-debug-toolbar~=3.2.1
......
......@@ -3,10 +3,10 @@
flake8~=3.9.1
pytest~=6.2.3
pytest-cov~=2.12.0
pytest-django~=4.3.0
pytest-django~=4.4.0
pytest-env~=0.6.0
pytest-mock~=3.6.0
pytest-randomly~=3.8.0
pytest-sugar~=0.9.0
requests-mock~=1.9.0
faker~=8.2.0
faker~=8.9.1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment