-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the concept of a container (unique) ID
This fixes #11 I also fixed a bug I discovered, where config values that were cached but the cache was not cleared when re-initialising the container. To reduce the risk of such a problem, I am now only caching the *whole* configuration dictionary (and not each value), and I don't need to implement caching anymore for each single config value; and I just need to clear one variable `self._config` rather than each newly-defined configuration. In addition, I add a test to check that re-initialising the container creates a new container ID (`container.container_id`).
- Loading branch information
1 parent
2d87757
commit c69da7a
Showing
2 changed files
with
51 additions
and
19 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