ft_transcendence/tests/test.py

22 lines
555 B
Python
Raw Normal View History

2023-11-06 08:36:28 -05:00
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..')) # Add parent directory to system path
from src.client import Client
from src import urls
from tests.accounts import test_accounts
from tests.profiles import test_profiles
def tests():
client = Client("http://0.0.0.0:8000/")
print("ACCOUNTS".center(os.get_terminal_size()[0], '-'))
test_accounts(client)
print("PROFILES".center(os.get_terminal_size()[0], '-'))
test_profiles(client)
if __name__ == "__main__":
tests()