-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes bugs where the globals are None
This is the case when these functions are called directly, and where the `inspect_domains()` function is not used. Currently these lists are defined only if `inspect_domains()` has been called, which may not be the case when testing (e.g. in #28 / #125), or when using pshtt as a library. The current solution is to raise an exception if the initialize function is not called explicitly, which is now its own function to handle initializing all the third party data. This begins work towards a more complete solution for #99, and allows for the initialize function to be mocked / called separately when working in tests.
- Loading branch information
1 parent
8e75578
commit e6a4b17
Showing
1 changed file
with
51 additions
and
12 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