Skip to content

Commit

Permalink
Merge pull request #175 from chipaca/tweek-template
Browse files Browse the repository at this point in the history
Tweek template
  • Loading branch information
facundobatista authored Oct 29, 2020
2 parents cbc2b3d + 517585c commit 0cc248c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions charmcraft/templates/init/tests/test_charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ from charm import {{ class_name }}
class TestCharm(unittest.TestCase):
def test_config_changed(self):
harness = Harness({{ class_name }})
# from 0.8 you should also do:
# self.addCleanup(harness.cleanup)
self.addCleanup(harness.cleanup)
harness.begin()
self.assertEqual(list(harness.charm._stored.things), [])
harness.update_config({"thing": "foo"})
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

pytest == 5.4.1
flake8 == 3.7.9
ops == 0.7.0
ops >= 0.8.0

0 comments on commit 0cc248c

Please sign in to comment.