remove unused tests for now

This commit is contained in:
collerek
2021-02-10 17:55:35 +01:00
parent d808499907
commit e56b0b5c49

View File

@ -38,28 +38,28 @@ class Post(ormar.Model):
title: str = ormar.String(max_length=200) title: str = ormar.String(max_length=200)
categories = ormar.ManyToMany(Category, through=PostCategory) categories = ormar.ManyToMany(Category, through=PostCategory)
#
@pytest.fixture(autouse=True, scope="module") # @pytest.fixture(autouse=True, scope="module")
async def create_test_database(): # async def create_test_database():
engine = sqlalchemy.create_engine(DATABASE_URL) # engine = sqlalchemy.create_engine(DATABASE_URL)
metadata.create_all(engine) # metadata.create_all(engine)
yield # yield
metadata.drop_all(engine) # metadata.drop_all(engine)
#
#
@pytest.mark.asyncio # @pytest.mark.asyncio
async def test_setting_fields_on_through_model(): # async def test_setting_fields_on_through_model():
async with database: # async with database:
# TODO: check/ modify following # # TODO: check/ modify following
# loading the data into model instance of though model? # # loading the data into model instance of though model?
# <- attach to other side? both sides? access by through, or add to fields? # # <- attach to other side? both sides? access by through, or add to fields?
# creating while adding to relation (kwargs in add?) # # creating while adding to relation (kwargs in add?)
# creating in query (dividing kwargs between final and through) # # creating in query (dividing kwargs between final and through)
# updating in query # # updating in query
# sorting in filter (special __through__<field_name> notation?) # # sorting in filter (special __through__<field_name> notation?)
# ordering by in order_by # # ordering by in order_by
# accessing from instance (both sides?) # # accessing from instance (both sides?)
# modifying from instance (both sides?) # # modifying from instance (both sides?)
# including/excluding in fields? # # including/excluding in fields?
# allowing to change fk fields names in through model? # # allowing to change fk fields names in through model?
pass # pass