We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3900387 commit a2096aaCopy full SHA for a2096aa
1 file changed
tests/test_cli.py
@@ -104,6 +104,13 @@ def test_get_key_with_interpolation(cli):
104
dotenv.set_key(dotenv_path, 'FOO', '${HELLO}')
105
dotenv.set_key(dotenv_path, 'BAR', 'CONCATENATED_${HELLO}_POSIX_VAR')
106
107
+ lines = list(open(dotenv_path, "r").readlines())
108
+ assert lines == [
109
+ 'HELLO="WORLD"\n',
110
+ 'FOO="${HELLO}"\n',
111
+ 'BAR="CONCATENATED_${HELLO}_POSIX_VAR"\n',
112
+ ]
113
+
114
# test replace from variable in file
115
stored_value = dotenv.get_key(dotenv_path, 'FOO')
116
assert stored_value == 'WORLD'
0 commit comments