Exemplo n.º 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]
Exemplo n.º 2
0
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]
Exemplo n.º 3
0
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
                  ]
Exemplo n.º 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)
Exemplo n.º 5
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)