(tmp_path)
| 12 | |
| 13 | |
| 14 | def test_set_key_no_file(tmp_path): |
| 15 | nx_file = str(tmp_path / "nx") |
| 16 | logger = logging.getLogger("dotenv.main") |
| 17 | |
| 18 | with mock.patch.object(logger, "warning"): |
| 19 | result = dotenv.set_key(nx_file, "foo", "bar") |
| 20 | |
| 21 | assert result == (True, "foo", "bar") |
| 22 | assert os.path.exists(nx_file) |
| 23 | |
| 24 | |
| 25 | @pytest.mark.parametrize( |
nothing calls this directly
no outgoing calls
no test coverage detected