Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(55)

Unified Diff: mstate/state_test.go

Issue 6495086: testing: make charm API into a test fixture.
Patch Set: testing: make charm API into a test fixture. Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mstate/state_test.go
=== modified file 'mstate/state_test.go'
--- mstate/state_test.go 2012-09-06 10:10:03 +0000
+++ mstate/state_test.go 2012-09-06 15:02:08 +0000
@@ -7,7 +7,6 @@
"launchpad.net/juju-core/charm"
"launchpad.net/juju-core/environs/config"
state "launchpad.net/juju-core/mstate"
- coretesting "launchpad.net/juju-core/testing"
"net/url"
)
@@ -21,7 +20,7 @@
func (s *StateSuite) TestAddCharm(c *C) {
// Check that adding charms from scratch works correctly.
- ch := coretesting.Charms.Dir("dummy")
+ ch := s.repo.Dir("dummy")
curl := charm.MustParseURL(
fmt.Sprintf("local:series/%s-%d", ch.Meta().Name, ch.Revision()),
)

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b