~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to charm/repo_test.go

  • Committer: Tarmac
  • Author(s): Tim Penhey
  • Date: 2013-09-20 03:21:56 UTC
  • mfrom: (1847.1.9 testbase)
  • Revision ID: tarmac-20130920032156-bdcdz4hd9jzpuim3
[r=thumper] Add a testbase package with no juju-core deps.

The base cleanup and logging suites are now there,
as are the patch functions.

A test also exists there to make sure that no juju-core
dependencies creep in.

https://codereview.appspot.com/13694046/

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
        "launchpad.net/juju-core/charm"
22
22
        "launchpad.net/juju-core/testing"
 
23
        "launchpad.net/juju-core/testing/testbase"
23
24
)
24
25
 
25
26
type MockStore struct {
151
152
}
152
153
 
153
154
type StoreSuite struct {
154
 
        testing.LoggingSuite
 
155
        testbase.LoggingSuite
155
156
        server      *MockStore
156
157
        store       *charm.CharmStore
157
158
        oldCacheDir string
172
173
        s.server.downloads = nil
173
174
}
174
175
 
175
 
// Uses the TearDownTest from testing.LoggingSuite
 
176
// Uses the TearDownTest from testbase.LoggingSuite
176
177
 
177
178
func (s *StoreSuite) TearDownSuite(c *gc.C) {
178
179
        charm.CacheDir = s.oldCacheDir
392
393
}
393
394
 
394
395
type LocalRepoSuite struct {
395
 
        testing.LoggingSuite
 
396
        testbase.LoggingSuite
396
397
        repo       *charm.LocalRepository
397
398
        seriesPath string
398
399
}