Switch to unified view

a b/tests/unit/test_pyproject_minimal.py
1
import toml
2
3
4
def test_pyproject_minimal_is_subset_of_pyproject():
5
    with open("pyproject.toml") as f:
6
        pyproject = toml.load(f)
7
    with open("pyproject.minimal.toml") as f:
8
        minimal = toml.load(f)
9
10
    # `pyproject.minimal.toml` doesn't need to contain everything `pyproject.toml`
11
    # contains, but whatever it does contain should agree with `pyproject.toml`
12
    assert minimal.keys() == {"project"}
13
    for key, value in minimal["project"].items():
14
        assert value == pyproject["project"][key]