-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor fixtures loading and implement table means
- Loading branch information
1 parent
99e8dc3
commit faf9f00
Showing
6 changed files
with
617 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'''Utility functions for crunch cube, as well as other modules.''' | ||
import os | ||
import json | ||
|
||
|
||
def load_fixture(fixtures_directory, filename): | ||
'''Loads fixtures for CrunchCube integration tests.''' | ||
with open(os.path.join(fixtures_directory, filename)) as ctx_file: | ||
fixture = json.load(ctx_file) | ||
return fixture |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.