Closed Bug 1256485 Opened 9 years ago Closed 9 years ago

Remove initial_data fixture from the unit tests

Categories

(Tree Management :: Treeherder, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: wlach)

References

Details

Attachments

(1 file)

It behaves incorrectly, overwriting the temporary "test" repository we create for treeherder (we didn't notice only because the jobs model keeps a cache of the test db name around, even though it's gone). This is interfering with my efforts to get rid of the last of refdata model. Almost no tests require anything from it, so we're best off just doing without it IMO.
Comment on attachment 8730444 [details] [review] [treeherder] wlach:1256485 > mozilla:master I think this one is pretty straightforward. :P
Attachment #8730444 - Flags: review?(mdoglio)
Blocks: 1231361
Comment on attachment 8730444 [details] [review] [treeherder] wlach:1256485 > mozilla:master mdoglio is away
Attachment #8730444 - Flags: review?(mdoglio) → review?(emorley)
Comment on attachment 8730444 [details] [review] [treeherder] wlach:1256485 > mozilla:master Looks great - thank you for doing this :-)
Attachment #8730444 - Flags: review?(emorley) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/ecac73e26a409daacc6b79de7ef4506870406beb Bug 1256485 - Don't load initial data in unit tests It's almost entirely unnecessary (the few times we need base data we can generate it ourselves) and can overwrite other test data if we're not careful. Better just to remove it.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: