django-unittest
Django unit tests spews database error - cannot commit transaction - SQL statements in progress
I\'m using unittest2 together with manage.py test, and before it even seems to run any tests, it spews a horrid database error, as below. I\'m in my development environment (actually on a dreamhost se[详细]
2023-03-14 19:47 分类:问答Change the default domain of Client() in unittest of Django
I am writing a unit test for Django views. class TestLog(unittest.TestCase): \"\"\"Test for Contact\"\"\"[详细]
2023-03-11 07:04 分类:问答How do I test a Django site that uses UDFs in the database?
I have a django project that uses a postgres db with a number of UDFs.The UDFs are written in plpythonu.Since plpyhtonu is an untrusted language, only database super users can use it to to create UDFs[详细]
2023-02-26 08:18 分类:问答What is the clean way to unittest FileField in django?
I have a model with a FileField. I want to unittest it. django test framework has great ways to manage database and emails. Is ther开发者_运维知识库e something similar for FileFields?[详细]
2023-01-26 20:51 分类:问答Table with a lot of attributes
I\'m planing to build some database project. One of the tables have a lot of attributes. My question is: What is better, to divide the the class into 2 separate tables or put all of them into one ta[详细]
2022-12-24 11:35 分类:问答