Files
codeql/rust/integration-tests/conftest.py
Paolo Tranquilli aae33db137 Rust: add basic integration tests
This adds testing of well-formed rust projects and workspaces, using
both `Cargo.toml` and `rust-project.json` manifests.
2024-09-17 11:23:39 +02:00

16 lines
283 B
Python

import pytest
import shutil
class _Manifests:
def __init__(self, cwd):
self.dir = cwd / "manifests"
def select(self, name: str):
(self.dir / name).rename(name)
shutil.rmtree(self.dir)
@pytest.fixture
def manifests(cwd):
return _Manifests(cwd)