-
Notifications
You must be signed in to change notification settings - Fork 24
Fix env #652
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
Fix env #652
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,12 @@ | ||
#!/usr/bin/env python | ||
# encoding: utf-8 | ||
# | ||
# Decorator to mark a unit test as a "work_in_progress" | ||
# From http://www.natpryce.com/articles/000788.html | ||
# Copyright 2011 Nat Pryce. Posted 2011-05-30 | ||
import unittest | ||
from functools import wraps | ||
|
||
from nose.plugins.attrib import attr | ||
from nose.plugins.skip import SkipTest | ||
|
||
|
||
def fail(message): | ||
raise AssertionError(message) | ||
|
||
|
||
def work_in_progress(f): | ||
@wraps(f) | ||
def run_test(*args, **kwargs): | ||
def wrapper(*args, **kwargs): | ||
try: | ||
f(*args, **kwargs) | ||
except Exception as e: | ||
raise SkipTest("WIP test failed: " + str(e)) | ||
fail("test passed but marked as work in progress") | ||
|
||
return attr('work_in_progress')(run_test) | ||
raise unittest.SkipTest("WIP test failed: " + str(e)) | ||
raise AssertionError("test passed but marked as work in progress") | ||
return wrapper |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,12 @@ channels: | |
- defaults | ||
- rmg | ||
- conda-forge | ||
- cantera | ||
- anaconda | ||
dependencies: | ||
- cairo | ||
- cairocffi | ||
- rmg::cantera >=2.3.0 | ||
- cantera::cantera=2.6 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That operator is not generally considered good practice, at his worst this scrambles your dependencies without the developer's knowing, at this best it gives you exactly what you want. |
||
- conda-forge::cclib >=1.7.0 | ||
- rmg::chemprop | ||
- coolprop | ||
|
@@ -25,9 +27,8 @@ dependencies: | |
- mpmath | ||
- rmg::muq2 | ||
- networkx | ||
- nose | ||
- rmg::numdifftools | ||
- numpy >=1.10.0 | ||
- numpy==1.20.1 | ||
- conda-forge::openbabel >= 3 | ||
- pandas | ||
- psutil | ||
|
@@ -57,5 +58,4 @@ dependencies: | |
- mako | ||
- pytables | ||
- anaconda::pytest | ||
- conda-forge::xtb | ||
- conda-forge::pytest-cov |
Uh oh!
There was an error while loading. Please reload this page.