#11 REFACTOR: Moved all tests into test classes
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import pytest
|
||||
from bs4 import BeautifulSoup
|
||||
from tests import test_client
|
||||
from flask.testing import FlaskClient
|
||||
from tests.base_test import TestBase
|
||||
|
||||
|
||||
def test_use_case(test_client: FlaskClient):
|
||||
response = test_client.get('/products/Car Parts')
|
||||
assert response.status_code == 200
|
||||
class TestFunctionalRequirements(TestBase):
|
||||
def test_use_case(self, test_client: FlaskClient):
|
||||
response = test_client.get('/products/Car Parts')
|
||||
assert response.status_code == 200
|
||||
|
Reference in New Issue
Block a user