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