Tests should not rely on Database.drop()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.2
    • Affects Version/s: 2.1.1
    • Component/s: None
    • None
    • Environment:
      OS X 10.7 64bit, HDD, standalone mongod
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      More than half the time spent during a run of `python setup.py test` on my machine is spent allocating data files – I believe a lot of this is due to many (most?) test cases dropping databases in cases where .remove() or Collection.drop() could suffice.

      In my case, running the test suite of 342 tests (current master) took 64 seconds, 37 seconds of which were spent allocating data files. On my laptop with SSD, total time is 55 seconds, 26 of which are spent allocating.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Daniel Crosta
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: