-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Zhiyuan Chen <[email protected]>
- Loading branch information
1 parent
5ae148c
commit 2733540
Showing
2 changed files
with
42 additions
and
6 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,30 @@ | ||
# CHANfiG, Easier Configuration. | ||
# Copyright (c) 2022-Present, CHANfiG Contributors | ||
|
||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the following licenses: | ||
# - The Unlicense | ||
# - GNU Affero General Public License v3.0 or later | ||
# - GNU General Public License v2.0 or later | ||
# - BSD 4-Clause "Original" or "Old" License | ||
# - MIT License | ||
# - Apache License 2.0 | ||
|
||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the LICENSE file for more details. | ||
|
||
|
||
from chanfig import ConfigRegistry as Registry_ | ||
|
||
|
||
class Registry(Registry_): | ||
key = "level" | ||
|
||
|
||
class TestRegistry: | ||
|
||
def test_registry(self): | ||
registry = Registry() | ||
assert registry.getattr("key") == "level" |