コード例 #1
0
def test_autoconfig():
    c = autoconfig()
    c.commit()
    # a way to check whether model in base was registered, could
    # we make this a bit less low-level?
    assert App.registry.traject.consume(['foo']) is not None
    assert UnderscoreApp.registry.traject.consume(['foo']) is not None
コード例 #2
0
ファイル: test_autosetup.py プロジェクト: kod3r/morepath
def test_autoconfig():
    c = autoconfig()
    c.commit()
    # a way to check whether model in base was registered, could
    # we make this a bit less low-level?
    assert app.traject(['foo']) == (get_foo, [], {})