| Conditions | 1 |
| Total Lines | 15 |
| Lines | 15 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | import os |
||
| 27 | View Code Duplication | def test_plugin_build_recipes(emptyApp, tmpdir): |
|
|
|
|||
| 28 | app = emptyApp |
||
| 29 | plugin = GwRecipesBuilder(app) |
||
| 30 | plugin.activate() |
||
| 31 | |||
| 32 | output_folder = str(tmpdir.mkdir("output")) |
||
| 33 | old_path = os.getcwd() |
||
| 34 | os.chdir(output_folder) |
||
| 35 | |||
| 36 | runner = CliRunner() |
||
| 37 | runner.invoke(app.commands.get("recipe_build").click_command, ["gw_package"]) |
||
| 38 | |||
| 39 | os.chdir(old_path) |
||
| 40 | |||
| 41 | runner.invoke(app.commands.get("recipe_build").click_command, ["not_existing"]) |
||
| 42 |