[charts] Async creating of new charts
This commit is contained in:
@ -17,7 +17,6 @@ def user(db):
|
||||
|
||||
@pytest.fixture
|
||||
def scrobble_data(user, db):
|
||||
from scrobbles.models import Scrobble
|
||||
from music.models import Track, Artist, Album
|
||||
|
||||
artist = Artist.objects.create(name="Test Artist")
|
||||
@ -133,7 +132,7 @@ def test_build_yearly_charts_creates_yearly_record(user, scrobble_data):
|
||||
@pytest.mark.django_db
|
||||
def test_build_charts_ranks_by_count(user, scrobble_data):
|
||||
from scrobbles.models import Scrobble
|
||||
from music.models import Track, Artist
|
||||
from music.models import Track
|
||||
|
||||
track1 = scrobble_data["track"]
|
||||
track2 = Track.objects.create(
|
||||
@ -183,7 +182,7 @@ def test_build_charts_ranks_by_count(user, scrobble_data):
|
||||
@pytest.mark.django_db
|
||||
def test_build_daily_charts_deletes_existing_daily_record(user, scrobble_data):
|
||||
from scrobbles.models import Scrobble
|
||||
from music.models import Track, Artist
|
||||
from music.models import Track
|
||||
|
||||
track1 = scrobble_data["track"]
|
||||
track2 = Track.objects.create(
|
||||
@ -228,7 +227,7 @@ def test_build_daily_charts_deletes_existing_daily_record(user, scrobble_data):
|
||||
@pytest.mark.django_db
|
||||
def test_build_monthly_charts_deletes_existing_monthly_record(user, scrobble_data):
|
||||
from scrobbles.models import Scrobble
|
||||
from music.models import Track, Artist
|
||||
from music.models import Track
|
||||
|
||||
track1 = scrobble_data["track"]
|
||||
track2 = Track.objects.create(
|
||||
|
||||
Reference in New Issue
Block a user