コード例 #1
0
def test_import():
    import base
    import sub
    from ns import real
    from ns import real2
    assert sorted(list(morepath_packages()),
                  key=lambda module: module.__name__) == [
        base, real, real2, sub]
コード例 #2
0
ファイル: test_autosetup.py プロジェクト: blaflamme/morepath
def test_import():
    import base
    import sub
    import entrypoint
    from ns import real
    from ns import real2
    import under_score

    assert sorted(list(morepath_packages()),
                  key=lambda module: module.__name__) == [
                      base, entrypoint, real, real2, sub, under_score]
コード例 #3
0
ファイル: test_autosetup.py プロジェクト: blaflamme/morepath
def test_import():
    import base
    import sub
    import entrypoint
    from ns import real
    from ns import real2
    import under_score

    assert sorted(list(morepath_packages()),
                  key=lambda module: module.__name__) == [
                      base, entrypoint, real, real2, sub, under_score
                  ]
コード例 #4
0
def test_import():
    import base
    import sub
    import entrypoint
    from ns import real
    from ns import real2
    import under_score

    # Pacakges to be ignored
    import no_mp
    from ns import nomp
    import no_mp_sub

    found = set(morepath_packages())
    assert {base, entrypoint, real, real2, sub, under_score} <= found
    assert {no_mp, nomp, no_mp_sub}.isdisjoint(found)
コード例 #5
0
ファイル: test_autosetup.py プロジェクト: gotcha/morepath
def test_import():
    import base
    import sub
    import entrypoint
    from ns import real
    from ns import real2
    import under_score

    # Pacakges to be ignored
    import no_mp
    from ns import nomp
    import no_mp_sub

    found = set(morepath_packages())
    assert {base, entrypoint, real, real2, sub, under_score} <= found
    assert {no_mp, nomp, no_mp_sub}.isdisjoint(found)