mirror of
https://github.com/wassname/sloth.git
synced 2026-08-08 11:27:16 +08:00
move tests to own subdir, removes pytest runtime dependency
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from sloth.annotations.container import *
|
||||
|
||||
class MockupContainer:
|
||||
pass
|
||||
|
||||
def test_import_callable():
|
||||
containers = (('*', 'container_factory_test.MockupContainer'),)
|
||||
factory = AnnotationContainerFactory(containers)
|
||||
item = factory.create('test')
|
||||
assert isinstance(item, MockupContainer)
|
||||
|
||||
Reference in New Issue
Block a user