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()
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()