Skip to content

Commit

Permalink
Merge pull request #79 from martimunicoy/missing_module_fix
Browse files Browse the repository at this point in the history
Fix missing modules in conda installation
  • Loading branch information
martimunicoy committed Oct 30, 2020
2 parents c9317b7 + e671476 commit 4c415d1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/releasehistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ New features
Bugfixes
""""""""
- `PR #74 <https://github.com/martimunicoy/offpele/pull/74>`_: Corrects wrong assignment of PDB atom names when using the OPLS2005 force field.
- `PR #79 <https://github.com/martimunicoy/offpele/pull/79>`_: Corrects error with missing modules in the Conda installation.

Tests added
"""""""""""
Expand Down
24 changes: 24 additions & 0 deletions offpele/tests/test_integrity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""
This module contains integrity tests that check that all offpele's modules
are available.
"""

import pytest


class TestIntegrity(object):
"""Integrity test."""

def test_modules(self):
try:
import offpele
from offpele import charge
from offpele import forcefield
from offpele import solvent
from offpele import template
from offpele import topology
from offpele import utils

except ImportError as e:
raise AssertionError('The following offpele module is missing: '
+ str(e))
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def find_package_data(data_root, package_root):
'offpele/topology',
'offpele/forcefield',
'offpele/utils',
'offpele/charge',
],
long_description=read('README.md'),
classifiers=[
Expand Down

0 comments on commit 4c415d1

Please sign in to comment.