def test_linkcode_resolve(): """Test linkcode resolving.""" ex = '' if sys.version[0] == '2' else '#L' url = linkcode_resolve('py', dict(module='mne', fullname='Epochs')) assert '/mne/epochs.py' + ex in url url = linkcode_resolve('py', dict(module='mne', fullname='compute_covariance')) assert '/mne/cov.py' + ex in url url = linkcode_resolve( 'py', dict(module='mne', fullname='convert_forward_solution')) assert '/mne/forward/forward.py' + ex in url url = linkcode_resolve( 'py', dict(module='mne', fullname='datasets.sample.data_path')) assert '/mne/datasets/sample/sample.py' + ex in url
def test_linkcode_resolve(): """Test linkcode resolving.""" ex = '#L' url = linkcode_resolve('py', dict(module='mne', fullname='Epochs')) assert '/mne/epochs.py' + ex in url url = linkcode_resolve('py', dict(module='mne', fullname='compute_covariance')) assert '/mne/cov.py' + ex in url url = linkcode_resolve('py', dict(module='mne', fullname='convert_forward_solution')) assert '/mne/forward/forward.py' + ex in url url = linkcode_resolve('py', dict(module='mne', fullname='datasets.sample.data_path')) assert '/mne/datasets/sample/sample.py' + ex in url