Skip to content

Commit

Permalink
Merge pull request #10 from Shikhar1998/travis_d
Browse files Browse the repository at this point in the history
Travis d
  • Loading branch information
Shikhar1998 authored Feb 4, 2018
2 parents 1098a4d + c238382 commit a333248
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: python
sudo: false
python:
- 2.7
install:
pip install sympy;
pip install matplotlib;
script: pytest -m python -v Lorentz/tests/;
2 changes: 2 additions & 0 deletions Lorentz/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from lorentz import lorentz_transform, gamma
from plotter_lorentz import plot_lorentz
Empty file added Lorentz/tests/__init__.py
Empty file.
3 changes: 1 addition & 2 deletions Lorentz/tests/test_lorentz.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from constants import c
from atomospy import c, gamma, lorentz_transform
from sympy import S, zoo, nan
from sympy.physics.vector import *
from lorentz import gamma, lorentz_transform

def test_gamma():
assert gamma(0) == S(1)
Expand Down
4 changes: 4 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Atomospy - Importing sub-libraries"

from constants import *
from .Lorentz import *

0 comments on commit a333248

Please sign in to comment.