This commit is contained in:
kssenii 2021-12-21 00:03:43 +03:00
parent 2ac7897470
commit a064410a39

View File

@ -67,8 +67,8 @@ def rabbitmq_cluster():
def rabbitmq_setup_teardown(): def rabbitmq_setup_teardown():
print("RabbitMQ is available - running test") print("RabbitMQ is available - running test")
yield # run test yield # run test
for table_name in ['view', 'consumer', 'rabbitmq']: instance.query(f'DROP DATABASE test')
instance.query(f'DROP TABLE IF EXISTS test.{table_name}') instance.query('CREATE DATABASE test')
# Tests # Tests