Giter Site home page Giter Site logo

Comments (2)

mortenwh avatar mortenwh commented on May 30, 2024

Also the following command fails:

python -m unittest pythesint.tests.test_vocabulary
Traceback (most recent call last):
  File "/home/vagrant/miniconda/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/vagrant/miniconda/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/vagrant/miniconda/lib/python2.7/unittest/__main__.py", line 12, in <module>
    main(module=None)
  File "/home/vagrant/miniconda/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/home/vagrant/miniconda/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/home/vagrant/miniconda/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/home/vagrant/miniconda/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/home/vagrant/miniconda/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_vocabulary'

from py-thesaurus-interface.

mortenwh avatar mortenwh commented on May 30, 2024

From @akorosov, this should work:

pip install mock
nosetests pythesint

And it does. So, after installing mock, also python setup.py testworks as expected :) I've added mock to the nersc-vagrant provisioning.

from py-thesaurus-interface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.