Add files via upload
This commit is contained in:
parent
8e53f0038d
commit
f216cf05c5
27 changed files with 29565 additions and 0 deletions
0
api/tests/integration/__init__.py
Normal file
0
api/tests/integration/__init__.py
Normal file
20
api/tests/integration/conftest.py
Normal file
20
api/tests/integration/conftest.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import pytest
|
||||
import faker
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
|
||||
from app.main import app as flask_app
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def fake():
|
||||
return faker.Faker()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def client():
|
||||
flask_app.config['TESTING'] = True
|
||||
|
||||
with flask_app.test_client() as client:
|
||||
yield client
|
0
api/tests/integration/songs/__init__.py
Normal file
0
api/tests/integration/songs/__init__.py
Normal file
4
api/tests/integration/songs/test_latest_songs.py
Normal file
4
api/tests/integration/songs/test_latest_songs.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
def test_get_lastest_songs(client):
|
||||
rv = client.get('/biahll/latest-song')
|
||||
assert rv.status_code == 200
|
||||
assert len(rv.json['track']) != None
|
Loading…
Add table
Add a link
Reference in a new issue