style: separate different tests
This commit is contained in:
parent
f864346828
commit
ecdc76a2a1
1 changed files with 11 additions and 1 deletions
|
@ -3,14 +3,24 @@ import pytest
|
|||
from compose_viz.extends import Extends
|
||||
|
||||
|
||||
def test_extend_init():
|
||||
def test_extend_init_normal():
|
||||
try:
|
||||
Extends(service_name="frontend", from_file="tests/in/000001.yaml")
|
||||
|
||||
assert True
|
||||
except Exception as e:
|
||||
assert False, e
|
||||
|
||||
|
||||
def test_extend_init_without_from_file():
|
||||
try:
|
||||
Extends(service_name="frontend")
|
||||
|
||||
assert True
|
||||
except Exception as e:
|
||||
assert False, e
|
||||
|
||||
|
||||
def test_extend_init_without_service_name():
|
||||
with pytest.raises(TypeError):
|
||||
Extends(from_file="tests/in/000001.yaml") # type: ignore
|
||||
|
|
Loading…
Reference in a new issue