Alberto Donato has proposed merging ~ack/maas:drop-maastesting-loader into maas:master.
Commit message: drop unused MAASTestLoader Requested reviews: MAAS Maintainers (maas-maintainers) For more details, see: https://code.launchpad.net/~ack/maas/+git/maas/+merge/439488 -- Your team MAAS Maintainers is requested to review the proposed merge of ~ack/maas:drop-maastesting-loader into maas:master.
diff --git a/src/maastesting/loader.py b/src/maastesting/loader.py deleted file mode 100644 index d40012f..0000000 --- a/src/maastesting/loader.py +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 2012-2015 Canonical Ltd. This software is licensed under the -# GNU Affero General Public License version 3 (see the file LICENSE). - -"""Test loader for MAAS and its applications.""" - - -import unittest - - -class MAASTestLoader(unittest.TestLoader): - """Scan modules for tests by default. - - This discovers tests using `unittest.TestLoader.discover` when - `loadTestsFromName` is called. This is not standard behaviour, but - it's here to help hook into setuptools' testing support. - - Refer to as ``maastesting.loader:MAASTestLoader`` in ``setup.py``. - """ - - def loadTestsFromName(self, name, module=None): - assert module is None, ( - "Module %r is confusing. This method expects the name passed " - "in to actually be a filesystem path from which to start test " - "discovery. It doesn't know what to do when a module object is " - "passed in too. Sorry, either this is not the class you're " - "looking for, or you're doing it wrong." % (module,) - ) - return self.discover(name)
-- Mailing list: https://launchpad.net/~sts-sponsors Post to : sts-sponsors@lists.launchpad.net Unsubscribe : https://launchpad.net/~sts-sponsors More help : https://help.launchpad.net/ListHelp