Exemple #1
0
func (t *ToolsSuite) TestPackageDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies on state, environ
	// or any of the other bigger packages that'll drag in yet more dependencies.
	// Only imports that start with "launchpad.net/juju-core" are checked, and the
	// resulting slice has that prefix removed to keep the output short.
	c.Assert(testing.FindJujuCoreImports(c, "launchpad.net/juju-core/agent/tools"),
		gc.DeepEquals,
		[]string{"utils/set", "version"})
}
Exemple #2
0
func (*importSuite) TestDependencies(c *gc.C) {
	// This test is to ensure we don't bring in dependencies at all.
	c.Assert(testing.FindJujuCoreImports(c, "launchpad.net/juju-core/juju/osenv"),
		gc.HasLen, 0)
}