Skip to content

Commit

Permalink
implement test for local extension update
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed May 31, 2023
1 parent 1f74151 commit 71a0a65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,4 +695,8 @@ def test_local_extension_update(cruft_runner, tmpdir):
)
assert result.exit_code == 0
with open(tmpdir / "test" / "README.md") as f:
assert "Updated11" in f.read()
contents = f.read()
# check if the text has been updated
assert "Updated11" in contents
# check if the extension has been updated
assert "This has been updated" in contents

0 comments on commit 71a0a65

Please sign in to comment.