Explorar o código

[tests] Change order of packages, traverse namespace, and restrict nose from changing sys path

Jenny Kim %!s(int64=10) %!d(string=hai) anos
pai
achega
1a10061
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      desktop/core/src/desktop/settings.py

+ 3 - 2
desktop/core/src/desktop/settings.py

@@ -335,8 +335,9 @@ if 'test' in sys.argv:
 
 # Limit Nose coverage to Hue apps
 NOSE_ARGS = [
-  '--cover-package=%s' % ','.join([app.name for app in appmanager.DESKTOP_MODULES]),
-  '--cover-inclusive',
+  '--cover-package=%s' % ','.join([app.name for app in appmanager.DESKTOP_APPS + appmanager.DESKTOP_LIBS]),
+  '--no-path-adjustment',
+  '--traverse-namespace'
 ]
 
 TIME_ZONE = desktop.conf.TIME_ZONE.get()