Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-435

[Django] Investigate speeding up Django's TransactionTestCase/TestCase

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: django
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Context

      Taken from github issue: https://github.com/mongodb-labs/django-mongodb/issues/181

      We're looking to optimize the run-time of the test cases. (Currently takes 20 minutes to run all tests, but we can get it down much lower)

      See the discussion in #179.

      One possibility beyond that discussion is to have Django's test suite TestCase classes set available_apps. Currently, runtests.py only enforces available_apps for TransactionTestCase but for database backends like django-mongodb that don't support transactions, TestCase functions like TransactionTestCase with regards to flushing the database.

      Definition of done

      Investigate and provide a list of potential options to mitigate issue.

      Pitfalls

      N/A

            Assignee:
            Unassigned Unassigned
            Reporter:
            jib.adegunloye@mongodb.com Jib Adegunloye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: