Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
916d9812
Unverified
Commit
916d9812
authored
Mar 19, 2024
by
M. Tolga Cangöz
Committed by
GitHub
Mar 18, 2024
Browse files
Update loading of config from a file in test_config.py (#7344)
Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
e6a84922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/others/test_config.py
tests/others/test_config.py
+1
-1
No files found.
tests/others/test_config.py
View file @
916d9812
...
...
@@ -270,7 +270,7 @@ class ConfigTester(unittest.TestCase):
config
.
save_config
(
tmpdirname
)
# now loading it with SampleObject2 should put f into `_use_default_values`
config
=
SampleObject2
.
from_config
(
tmpdirname
)
config
=
SampleObject2
.
from_config
(
SampleObject2
.
load_config
(
tmpdirname
)
)
assert
"f"
in
config
.
config
.
_use_default_values
assert
config
.
config
.
f
==
[
1
,
3
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment