Skip to content

Commit

Permalink
Add the FakeNetwork fixture to the available fakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Free Ekanayaka committed Oct 13, 2016
1 parent d697a31 commit ff3b617
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ for further documentation:
... self.assertTrue(self.fakes.fs)
... self.assertTrue(self.fakes.users)
... self.assertTrue(self.fakes.groups)
... self.assertTrue(self.fakes.network)
>>>
>>> ExampleCharmTest(methodName="test_other_fakes").run().wasSuccessful()
True
Expand Down
2 changes: 2 additions & 0 deletions charmtest/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
FakeUsers,
FakeGroups,
FakeProcesses,
FakeNetwork,
)
from systemfixtures.processes import (
Systemctl,
Expand All @@ -23,6 +24,7 @@ def _setUp(self):
self.users = self.useFixture(FakeUsers())
self.groups = self.useFixture(FakeGroups())
self.processes = self.useFixture(FakeProcesses())
self.network = self.useFixture(FakeNetwork())
self.juju = self.useFixture(FakeJuju(self.fs, self.processes))

self.processes.add(Systemctl())
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pbr
-e git+git://github.com/freeekanayaka/fixtures@master#egg=fixtures-3.0.1
systemfixtures>=0.2.5
systemfixtures>=0.2.7
testtools
charmhelpers

0 comments on commit ff3b617

Please sign in to comment.