-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Realized why ${} interpolation wasn't turned on
- Loading branch information
1 parent
0030683
commit df9d88a
Showing
18 changed files
with
210 additions
and
178 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
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
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 |
---|---|---|
@@ -1,15 +1,12 @@ | ||
from bandersnatch.configuration import BandersnatchConfig | ||
from bandersnatch.config import BandersnatchConfig | ||
|
||
|
||
def mock_config(contents: str, filename: str = "test.conf") -> BandersnatchConfig: | ||
""" | ||
Creates a config file with contents and loads them into a | ||
BandersnatchConfig instance. | ||
""" | ||
with open(filename, "w") as fd: | ||
fd.write(contents) | ||
|
||
instance = BandersnatchConfig() | ||
instance.config_file = filename | ||
instance.load_configuration() | ||
instance.read_string(contents) | ||
return instance |
Oops, something went wrong.