@@ -189,7 +189,7 @@ def test_set_no_file(cli):
189189
190190
191191def test_get_default_path (tmp_path ):
192- (tmp_path / ".env" ).write_text ("A=B " )
192+ (tmp_path / ".env" ).write_text ("A=x " )
193193
194194 result = subprocess .run (
195195 ["dotenv" , "get" , "A" ],
@@ -199,11 +199,11 @@ def test_get_default_path(tmp_path):
199199 text = True ,
200200 )
201201
202- assert result .stdout == "B \n "
202+ assert result .stdout == "x \n "
203203
204204
205205def test_run (tmp_path ):
206- (tmp_path / ".env" ).write_text ("A=B " )
206+ (tmp_path / ".env" ).write_text ("A=x " )
207207
208208 result = subprocess .run (
209209 ["dotenv" , "run" , "printenv" , "A" ],
@@ -213,13 +213,13 @@ def test_run(tmp_path):
213213 text = True ,
214214 )
215215
216- assert result .stdout == "B \n "
216+ assert result .stdout == "x \n "
217217
218218
219219def test_run_with_existing_variable (tmp_path ):
220- (tmp_path / ".env" ).write_text ("A=B " )
220+ (tmp_path / ".env" ).write_text ("A=x " )
221221 env = dict (os .environ )
222- env .update ({"LANG" : "en_US.UTF-8" , "A" : "C " })
222+ env .update ({"LANG" : "en_US.UTF-8" , "A" : "y " })
223223
224224 result = subprocess .run (
225225 ["dotenv" , "run" , "printenv" , "A" ],
@@ -230,11 +230,11 @@ def test_run_with_existing_variable(tmp_path):
230230 env = env ,
231231 )
232232
233- assert result .stdout == "B \n "
233+ assert result .stdout == "x \n "
234234
235235
236236def test_run_with_existing_variable_not_overridden (tmp_path ):
237- (tmp_path / ".env" ).write_text ("A=B " )
237+ (tmp_path / ".env" ).write_text ("A=x " )
238238 env = dict (os .environ )
239239 env .update ({"LANG" : "en_US.UTF-8" , "A" : "C" })
240240
@@ -251,7 +251,7 @@ def test_run_with_existing_variable_not_overridden(tmp_path):
251251
252252
253253def test_run_with_none_value (tmp_path ):
254- (tmp_path / ".env" ).write_text ("A=B \n c" )
254+ (tmp_path / ".env" ).write_text ("A=x \n c" )
255255
256256 result = subprocess .run (
257257 ["dotenv" , "run" , "printenv" , "A" ],
@@ -261,11 +261,11 @@ def test_run_with_none_value(tmp_path):
261261 text = True ,
262262 )
263263
264- assert result .stdout == "B \n "
264+ assert result .stdout == "x \n "
265265
266266
267267def test_run_with_other_env (dotenv_path ):
268- dotenv_path .write_text ("A=B " )
268+ dotenv_path .write_text ("A=x " )
269269
270270 result = subprocess .run (
271271 ["dotenv" , "--file" , dotenv_path , "run" , "printenv" , "A" ],
@@ -274,7 +274,7 @@ def test_run_with_other_env(dotenv_path):
274274 text = True ,
275275 )
276276
277- assert result .stdout == "B \n "
277+ assert result .stdout == "x \n "
278278
279279
280280def test_run_without_cmd (cli ):
0 commit comments