Exemplo n.º 1
0
def test_set_use_clarifai_raises_on_windows(load_follow_restriction):
    """windows not supported"""
    instapy = InstaPy(selenium_local_session=False)
    with patch('instapy.instapy.os') as os:
        type(os).name = PropertyMock(return_value='nt')
        with pytest.raises(InstaPyError):
            instapy.set_use_clarifai()
Exemplo n.º 2
0
def test_set_use_clarifai_raises_on_windows(load_follow_restriction):
    """windows not supported"""
    instapy = InstaPy(selenium_local_session=False)
    with patch('instapy.instapy.os'):
        with pytest.raises(InstaPyError):
            instapy.set_use_clarifai()