Skip to content

Commit

Permalink
Merge pull request #173 from canonical/readme-fix-test-pebble-push
Browse files Browse the repository at this point in the history
fixed comma and test-pebble-push example
  • Loading branch information
PietroPasotti authored Aug 13, 2024
2 parents a965323 + 00ce9b0 commit 602f9b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -611,13 +611,13 @@ class MyCharm(ops.CharmBase):

def test_pebble_push():
with tempfile.NamedTemporaryFile() as local_file:
container = scenario,Container(
container = scenario.Container(
name='foo',
can_connect=True,
mounts={'local': Mount('/local/share/config.yaml', local_file.name)}
mounts={'local': scenario.Mount('/local/share/config.yaml', local_file.name)}
)
state_in = State(containers=[container])
ctx = Context(
state_in = scenario.State(containers=[container])
ctx = scenario.Context(
MyCharm,
meta={"name": "foo", "containers": {"foo": {}}}
)
Expand Down

0 comments on commit 602f9b9

Please sign in to comment.