Test that the pyproject.toml file is created when the payload is prepared.
()
| 259 | |
| 260 | @pytest.mark.skipif(sys.platform != "win32", reason="Windows only") |
| 261 | def test_payload_pyproject_toml(): |
| 262 | """Test that the pyproject.toml file is created when the payload is prepared.""" |
| 263 | info = mock_info.copy() |
| 264 | payload = Payload(info) |
| 265 | payload.prepare() |
| 266 | pyproject_toml = payload.root / "pyproject.toml" |
| 267 | assert pyproject_toml.is_file() |
| 268 | |
| 269 | |
| 270 | @pytest.mark.skipif(sys.platform != "win32", reason="Windows only") |