Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualization unit tests fail when run individually #10161

Closed
jdavcs opened this issue Aug 27, 2020 · 1 comment
Closed

Visualization unit tests fail when run individually #10161

jdavcs opened this issue Aug 27, 2020 · 1 comment
Assignees
Milestone

Comments

@jdavcs
Copy link
Member

jdavcs commented Aug 27, 2020

Verified on Python 3.5, 3.6, 3.7, 3.8, Linux and Mac, dev and 20.05 branches.

The error is raised inside the routes package, but is caused by the interdependence of Galaxy's unit tests.

test/unit/visualizations/plugins/test_VisualizationPlugin.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
lib/galaxy/visualization/plugins/plugin.py:159: in _build_render_vars
    visualization_plugin=self.to_dict(),
lib/galaxy/visualization/plugins/plugin.py:122: in to_dict
    'href'          : self._get_url()
lib/galaxy/visualization/plugins/plugin.py:128: in _get_url
    return url_for('visualization_plugin', visualization_name=self.name)
.venv/lib/python3.5/site-packages/routes/util.py:201: in url_for
    encoding = config.mapper.encoding
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <routes._RequestConfig object at 0x7f87e9c6a550>, name = 'mapper'

    def __getattr__(self, name):
>       return getattr(self.__shared_state, name)
E       AttributeError: '_thread._local' object has no attribute 'mapper'

.venv/lib/python3.5/site-packages/routes/__init__.py:15: AttributeError
@bgruening
Copy link
Member

Fixed in #10162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants