Conditions | 2 |
Total Lines | 20 |
Code Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import pytest |
||
21 | def _test_it(self, should_track=False, tyranno_vr="latest"): |
||
22 | project = "tempted2temp" |
||
23 | with TestResources.temp_dir() as parent: |
||
24 | path = parent / project |
||
25 | New( |
||
26 | name=project, |
||
27 | license_name="apache2", |
||
28 | username="user", |
||
29 | authors=["Author 1"], |
||
30 | description="A description", |
||
31 | keywords=["some", "keywords"], |
||
32 | version="0.1.0", |
||
33 | status=DevStatus.alpha, |
||
34 | should_track=should_track, |
||
35 | extras=False, |
||
36 | tyranno_vr=tyranno_vr, |
||
37 | ).create(path) |
||
38 | assert (path / "pyproject.toml").exists() |
||
39 | context = Context(path, dry_run=True) |
||
40 | assert context.project == project |
||
41 | |||
45 |