Comments (2)
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.
From @akorosov, this should work:
pip install mock
nosetests pythesint
And it does. So, after installing mock, also python setup.py test
works as expected :) I've added mock to the nersc-vagrant provisioning.
from py-thesaurus-interface.
Related Issues (20)
- The URLs for the GCMD vocabularies have changed
- The error message is unclear when a URL is unavailable
- CF standard name table is outdated HOT 1
- Add MET MMD controlled vocabularies HOT 1
- Should we add other registries as well?
- Is it possible to create a new release with updates from last autumn? HOT 1
- GCMD keywords versions are not pinned HOT 4
- Revision information in GCMD vocabularies produces an empty dict in the output of get_list()
- Problems with the "mmd_platform_type" vocabulary
- Migrate CI to Github Actions
- Replace badge in readme
- GCMD rucontenttype's structure evolved
- Changed structure for MMD vocabularies source
- Running update_all_vocabularies() on package install can be problematic HOT 1
- Build wheel as well as source package
- Changes in GCMD platform data structure HOT 1
- The GCMD platform fields are back to their old names
- https://gcmdservices.gsfc.nasa.gov/ is not accessible (retired) HOT 1
- Remove obsolete dependency on old versions of PyYaml, requests and xdg
- Link http://gcmd.gsfc.nasa.gov appears to be dead in README HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-thesaurus-interface.