Returns the paths for any external backend packages.
(self)
| 100 | settings_file.write("%s = %s\n" % (k, v)) |
| 101 | |
| 102 | def _ext_backend_paths(self): |
| 103 | """ |
| 104 | Returns the paths for any external backend packages. |
| 105 | """ |
| 106 | paths = [] |
| 107 | for backend in settings.DATABASES.values(): |
| 108 | package = backend["ENGINE"].split(".")[0] |
| 109 | if package != "django": |
| 110 | backend_pkg = __import__(package) |
| 111 | backend_dir = os.path.dirname(backend_pkg.__file__) |
| 112 | paths.append(os.path.dirname(backend_dir)) |
| 113 | return paths |
| 114 | |
| 115 | def run_test(self, args, settings_file=None, apps=None, umask=-1): |
| 116 | base_dir = os.path.dirname(self.test_dir) |