(Comments)
Django: Best way to unit-test an abstract model - Stack Overflow
https://stackoverflow.com/questions/4281670/django-best-way-to-unit-test-an-abstract-model
こちらを参考に
Share on Twitter Share on Facebook
class CodeMemoBaseTest(TestCase):
model = None
@classmethod
def setUpClass(cls):
cls.model = ModelBase(
'__TestModel__' +
CodeMemoBase.__name__, (CodeMemoBase,),
{'__module__': CodeMemoBase.__module__}
)
# Create the schema for our test model
with connection.schema_editor() as schema_editor:
schema_editor.create_model(cls.model)
super().setUpClass()
@classmethod
def tearDownClass(cls):
# Delete the schema for the test model
with connection.schema_editor() as schema_editor:
schema_editor.delete_model(cls.model)
super().tearDownClass()
apple developer の、テスト用デバイスのUDIDを1年ごとにチェックして、古い端末を消しちゃうやつ
チェックボックスを入れたのを残すのか、消すのかの判断まちがって、全部のUDID消えたわ
4 months, 1 week ago
うちの会社 TORICO の 代表が今TV出てます #漫画全巻ドットコム #激レアさんを連れてきた
4 months, 2 weeks ago
Proofpoint にブロックされているIPアドレスからでも icloud など Apple メールアドレスにメール送信されてもブロックされてない…?
5 months, 1 week ago
Comments