コード例 #1
0
ファイル: test_self_test.py プロジェクト: yukienomiya/sunpy
def test_main_figure_only(monkeypatch):
    args = _self_test_args(figure_only=True)
    assert args == [
        '-W', 'ignore', '--pyargs', 'sunpy', '-m', 'mpl_image_compare'
    ]
コード例 #2
0
ファイル: test_self_test.py プロジェクト: yukienomiya/sunpy
def test_main_only_remote_data(monkeypatch):
    args = _self_test_args(package='map', online_only=True)
    assert args == [
        '-W', 'ignore', '--remote-data=any -m remote_data', '--pyargs',
        'sunpy.map'
    ]
コード例 #3
0
ファイル: test_self_test.py プロジェクト: yukienomiya/sunpy
def test_main_exclude_remote_data(monkeypatch):
    args = _self_test_args(package='map', online=False)
    assert args == ['-W', 'ignore', '--pyargs', 'sunpy.map']
コード例 #4
0
ファイル: test_self_test.py プロジェクト: yukienomiya/sunpy
def test_main_submodule_jsoc(monkeypatch):
    args = _self_test_args(package='net.jsoc')
    assert args == ['-W', 'ignore', '--pyargs', 'sunpy.net.jsoc']
コード例 #5
0
ファイル: test_self_test.py プロジェクト: yukienomiya/sunpy
def test_main_submodule_map(monkeypatch):
    args = _self_test_args(package='map')
    assert args == ['-W', 'ignore', '--pyargs', 'sunpy.map']
コード例 #6
0
ファイル: test_self_test.py プロジェクト: yukienomiya/sunpy
def test_main_noargs(monkeypatch):
    test_args = _self_test_args()
    assert test_args == ['-W', 'ignore', '--pyargs', 'sunpy']