Exemplo n.º 1
0
def test_sandbox_failed():
    assert not main("python/0PLG/TPE/identificateurs.pl",
                    sandboxurl="fake_sandbox")
Exemplo n.º 2
0
def test_main_pl_succeed():
    assert main("python/0PLG/TPE/identificateurs.pl",
                sandboxurl="http://127.0.0.1:8000/sandbox/?action=execute")
Exemplo n.º 3
0
def test_main_failed():
    assert not main("bad_file",
                    sandboxurl="http://127.0.0.1:8000/sandbox/?action=execute")
Exemplo n.º 4
0
def test_main_pltp_failed():
    os.chdir(str(os.path.dirname(__file__)) + '/../../../../repo/plbank')
    assert not main("/python/0PLG/missingkey.pltp",
                    sandboxurl="http://127.0.0.1:8000/sandbox/?action=execute")