added logo

This commit is contained in:
Hellow
2023-02-22 17:56:52 +01:00
parent 33b1efc2ed
commit 20977c0208
19 changed files with 413 additions and 38 deletions

0
src/tests/__init__.py Normal file
View File

5
src/tests/conftest.py Normal file
View File

@@ -0,0 +1,5 @@
import os
import sys
# Add the parent directory of the current file (i.e., the "tests" directory) to sys.path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

View File

@@ -0,0 +1,46 @@
import pycountry
from ..music_kraken.objects import (
Song,
Source,
SourcePages,
Target,
Lyrics,
Album
)
"""
TODO
create enums for Album.album_status
move country from Album to Artist, and use pycountry.Countries
"""
song = Song(
title="title",
isrc="isrc",
length=666,
tracksort=1,
genre="horrorcore",
source_list=[
Source(SourcePages.YOUTUBE, "https://www.youtube.com/watch?v=dQw4w9WgXcQ"),
Source(SourcePages.SPOTIFY, "https://open.spotify.com/track/6rqhFgbbKwnb9MLmUQDhG6"),
Source(SourcePages.BANDCAMP, "https://metalband.bandcamp.com/track/song1")
],
target=Target(file="song.mp3", path="~/Music"),
lyrics_list=[
Lyrics(text="some song lyrics", language="en")
],
album=Album(
title="some album",
label="braindead",
album_status="official",
language=pycountry.languages.get(alpha_2='de'),
)
)
song1_sources = [
Source(SourcePages.YOUTUBE, "https://www.youtube.com/watch?v=dQw4w9WgXcQ"),
Source(SourcePages.SPOTIFY, "https://open.spotify.com/track/6rqhFgbbKwnb9MLmUQDhG6"),
Source(SourcePages.BANDCAMP, "https://metalband.bandcamp.com/track/song1")
]