mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-14 04:57:53 -06:00
17 lines
352 B
Python
17 lines
352 B
Python
from viv.viv import SpecifierSet, Version, toml_loads
|
|
|
|
|
|
def test_packaging():
|
|
assert Version("3.6") in SpecifierSet(">=3.6")
|
|
|
|
|
|
def test_tomli():
|
|
assert {"requires-python": ">3.6", "dependencies": ["rich", "typer"]} == toml_loads(
|
|
"""
|
|
requires-python = ">3.6"
|
|
dependencies = [
|
|
"rich",
|
|
"typer"
|
|
]
|
|
"""
|
|
)
|