Commit 3e66fe5
authored
Prevent test discovery from loading models (#915)
Since we started putting models in tests/models, unittest (which
geltest uses also for this) test discovery will go and recursively
import models that are sitting around between test runs. This is rough
as some/all of them are about to be blown away and regenerated.
If we just switched from some branch making interesting changes, the
imports might fail.
unittest has a `load_tests` protocol that we can use to take charge of
our own test loading for a package... and then not do any.1 parent 436af50 commit 3e66fe5
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
362 | 368 | | |
363 | 369 | | |
364 | 370 | | |
| |||
0 commit comments