| Conditions | 2 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 10 | def test_update(self): |
||
| 11 | with TestResources.temp_dir("fake") as path: |
||
| 12 | # TODO use a fake pypi getter |
||
| 13 | context = Context(path, dry_run=True) |
||
| 14 | update = Update(context) |
||
| 15 | pkgs, devs = update.update() |
||
| 16 | # cheat flake8 here: |
||
| 17 | assert [x for x in sorted(pkgs.keys())] == ["requests", "tomlkit", "typer"] |
||
| 18 | assert list(devs) == ["pytest"] |
||
| 19 | |||
| 23 |