()
| 38 | |
| 39 | @contextlib.contextmanager |
| 40 | def _nuget_config_no_sources() -> Generator[str]: |
| 41 | with tempfile.TemporaryDirectory() as tmpdir: |
| 42 | nuget_config = os.path.join(tmpdir, 'nuget.config') |
| 43 | with open(nuget_config, 'w') as f: |
| 44 | f.write( |
| 45 | '<?xml version="1.0" encoding="utf-8"?>' |
| 46 | '<configuration>' |
| 47 | ' <packageSources>' |
| 48 | ' <clear />' |
| 49 | ' </packageSources>' |
| 50 | '</configuration>', |
| 51 | ) |
| 52 | yield nuget_config |
| 53 | |
| 54 | |
| 55 | def install_environment( |
no outgoing calls
no test coverage detected