Commit 37d2dcbc authored by Qusai Al Shidi's avatar Qusai Al Shidi 💬
Browse files

CI

parent 034e4e17
before_script:
- apt-get update -qy
- apt-get install -y python3 python3-numpy python3-pip
- python3 -m pip install pytest
- python3 -m pip install -r requirements.txt
- python3 -m pip install drms
run-test:
script:
- python3 -m pytest
......@@ -95,7 +95,7 @@ You can cite this software on LaTeX like this:
```latex
@software{swmfpy,
author = {{Qusai Al Shidi}},
author = {{Al Shidi, Qusai}},
title = {swmfpy},
url = {https://gitlab.umich.edu/swmf_software/swmfpy},
version = {2020.5},
......
......@@ -15,6 +15,7 @@ import gzip
from operator import itemgetter
import shutil
import urllib
import urllib.request
from dateutil import rrule
import numpy as np
from .tools import _nearest, carrington_rotation_number
......
#!/usr/bin/env python
"""Tests for web.py
"""
import datetime as dt
from os.path import isfile
from swmfpy import *
TIMES = (dt.datetime(2012, 12, 1), dt.datetime(2013, 1, 1))
def test_write_imf_from_omni():
write_imf_from_omni(*TIMES)
assert isfile('IMF.dat')
#!/usr/bin/env python
"""Test for web.py
"""
from os.path import isfile
import datetime as dt
from swmfpy.web import *
TIME = dt.datetime(2016, 2, 3, 2, 1, 1)
def test_download_magnetogram_adapt():
download_magnetogram_adapt(TIME)
assert isfile('adapt40311_03k012_201602030200_i00015600n1.fts')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment