Example #1
0
def test_script():
    cmd = script.ScriptCommand('script')
    cmd.run([
        test_config,
        pkg_resources.resource_filename('allura', 'tests/tscript.py')
    ])
    assert_raises(ValueError, cmd.run, [
        test_config,
        pkg_resources.resource_filename('allura', 'tests/tscript_error.py')
    ])
def test_script():
    cmd = script.ScriptCommand('script')
    cmd.run([test_config, 'allura/tests/tscript.py'])
    assert_raises(ValueError, cmd.run,
                  [test_config, 'allura/tests/tscript_error.py'])