Tests now take over 30 seconds to run, because setUp() builds an entire school for each test, which is not necessary.
[x] Pass setUp() an argument telling it how many of each element to make, which defaults to 2.
Tests go from ~35s to ~11s.
[x] Tests that interact with the db should inherit from django.test.TestCase; tests that don't interact with db should inherit from unittest.TestCase. (ref)
[x] Break setUp() into smaller parts. setUp() should build a school, but then have separate methods to build the school out to subject area levels, sda, grad std, or perf indicator. Then each test method can only call the level it needs. Testing efficiency should be greatly improved. Methdods such as build_to_sas(), build_to_eus(). (noted in comment, not implemented yet)
[x] Reorganize tests into several files.
[x] May want to use simpler pw hashing for tests. (noted in comment, not implemented yet)
Tests now take over 30 seconds to run, because
setUp()
builds an entire school for each test, which is not necessary.build_to_sas()
,build_to_eus()
. (noted in comment, not implemented yet)