# Path: django_cassandra_engine/test.py
# class TestCase(DjangoTestCase):
#     databases = list(get_cassandra_db_aliases())
# 
#     def _should_reload_connections(self):
#         return False
# 
#     def _fixture_teardown(self):
#         """
#         Allow normal django TestCase fixture teardown, but also flush the test
#         database for each cassandra alias.
#         """
#         super(TestCase, self)._fixture_teardown()
# 
#         for alias, _ in get_cassandra_connections():
#             # Flush the database
#             call_command(
#                 "flush",
#                 verbosity=1,
#                 interactive=False,
#                 database=alias,
#                 skip_checks=True,
#                 reset_sequences=False,
#                 allow_cascade=False,
#                 inhibit_post_migrate=True,
#             )


from datetime import datetime
from http import client
from django.urls import reverse
from common.models import CassandraThingMultiplePK
from django_cassandra_engine.test import TestCase as CassandraTestCase
from freezegun import freeze_time




@freeze_time("14-06-15 15:44:25")
def create_thing():
    return CassandraThingMultiplePK.objects.create(created_on=datetime.now())


@freeze_time("14-06-15 15:44:25")

# Path: django_cassandra_engine/test.py
# class TestCase(DjangoTestCase):
#     databases = list(get_cassandra_db_aliases())
# 
#     def _should_reload_connections(self):
#         return False
# 
#     def _fixture_teardown(self):
#         """
#         Allow normal django TestCase fixture teardown, but also flush the test
#         database for each cassandra alias.
#         """
#         super(TestCase, self)._fixture_teardown()
# 
#         for alias, _ in get_cassandra_connections():
#             # Flush the database
#             call_command(
#                 "flush",
#                 verbosity=1,
#                 interactive=False,
#                 database=alias,
#                 skip_checks=True,
#                 reset_sequences=False,
#                 allow_cascade=False,
#                 inhibit_post_migrate=True,
#             )


# Path: testproject/common/tests/test_views.py
from datetime import datetime
from http import client
from django.urls import reverse
from common.models import CassandraThingMultiplePK
from django_cassandra_engine.test import TestCase as CassandraTestCase
from freezegun import freeze_time





@freeze_time("14-06-15 15:44:25")
def create_thing():
    return CassandraThingMultiplePK.objects.create(created_on=datetime.now())


@freeze_time("14-06-15 15:44:25")

class TestViewSet(CassandraTestCase):