Fix tests

This commit is contained in:
Sleepy Monax 2024-02-12 11:51:52 +01:00
parent 01371ed5d4
commit d3d4482f8e

View file

@ -2,7 +2,7 @@ from cutekit import model
def test_direct_deps():
r = model.Registry("")
r = model.Registry(model.Project("myproj"))
r._append(model.Component("myapp", requires=["mylib"]))
r._append(model.Component("mylib"))
t = model.Target("host")
@ -14,7 +14,7 @@ def test_direct_deps():
def test_indirect_deps():
r = model.Registry("")
r = model.Registry(model.Project("myproj"))
r._append(model.Component("myapp", requires=["mylib"]))
r._append(model.Component("mylib", requires=["myembed"]))
r._append(model.Component("myimpl", provides=["myembed"]))
@ -24,7 +24,7 @@ def test_indirect_deps():
def test_deps_routing():
r = model.Registry("")
r = model.Registry(model.Project("myproj"))
r._append(model.Component("myapp", requires=["mylib"]))
r._append(model.Component("mylib", requires=["myembed"]))
r._append(model.Component("myimplA", provides=["myembed"]))
@ -43,7 +43,7 @@ def test_deps_routing():
def test_deps_routing_with_props():
r = model.Registry("")
r = model.Registry(model.Project("myproj"))
r._append(model.Component("myapp", requires=["mylib"]))
r._append(model.Component("mylib", requires=["myembed"]))
r._append(
@ -68,7 +68,7 @@ def test_deps_routing_with_props():
def test_deps_routing_with_props_and_requires():
r = model.Registry("")
r = model.Registry(model.Project("myproj"))
r._append(model.Component("myapp", requires=["mylib"]))
r._append(model.Component("mylib", requires=["myembed"]))
r._append(