Hello,

I've tried running the tests on bloodhound_dashboard and I have some
trouble.

It seems that it's missing a test_suite in bhdashboard/tests/__init__.py

Here is the traceback:

(bloodhound)user@system:~/project/bloodhound/bloodhound_dashboard$ python 
setup.py test -m bhdashboard.tests
running test
running egg_info
writing requirements to BloodhoundDashboardPlugin.egg-info/requires.txt
writing BloodhoundDashboardPlugin.egg-info/PKG-INFO
writing top-level names to BloodhoundDashboardPlugin.egg-info/top_level.txt
writing dependency_links to 
BloodhoundDashboardPlugin.egg-info/dependency_links.txt
writing entry points to BloodhoundDashboardPlugin.egg-info/entry_points.txt
reading manifest file 'BloodhoundDashboardPlugin.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'LICENSE'
warning: no files found matching 'NOTICE'
warning: no directories found matching 'bhdashboard/widgets/htdocs'
writing manifest file 'BloodhoundDashboardPlugin.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 150, in <module>
    long_description= DESC
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File 
"/home/user/.virtualenvs/bloodhound/local/lib/python2.7/site-packages/setuptools/command/test.py",
 line 138, in run
    self.with_project_on_sys_path(self.run_tests)
  File 
"/home/user/.virtualenvs/bloodhound/local/lib/python2.7/site-packages/setuptools/command/test.py",
 line 118, in with_project_on_sys_path
    func()
  File 
"/home/user/.virtualenvs/bloodhound/local/lib/python2.7/site-packages/setuptools/command/test.py",
 line 164, in run_tests
    testLoader = cks
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_suite'

Am I missing something or should I run the tests differently for the dashboard ?

Reply via email to