Beispiel #1
0
def test_main_figure_only(monkeypatch):
    args = _self_test_args(figure_only=True)
    assert args == [
        '-W', 'ignore', '--pyargs', 'sunpy', '-m', 'mpl_image_compare'
    ]
Beispiel #2
0
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'
    ]
Beispiel #3
0
def test_main_exclude_remote_data(monkeypatch):
    args = _self_test_args(package='map', online=False)
    assert args == ['-W', 'ignore', '--pyargs', 'sunpy.map']
Beispiel #4
0
def test_main_submodule_jsoc(monkeypatch):
    args = _self_test_args(package='net.jsoc')
    assert args == ['-W', 'ignore', '--pyargs', 'sunpy.net.jsoc']
Beispiel #5
0
def test_main_submodule_map(monkeypatch):
    args = _self_test_args(package='map')
    assert args == ['-W', 'ignore', '--pyargs', 'sunpy.map']
Beispiel #6
0
def test_main_noargs(monkeypatch):
    test_args = _self_test_args()
    assert test_args == ['-W', 'ignore', '--pyargs', 'sunpy']