def test_module_nop_with_initial_col_selection(self): table = pd.DataFrame({'A': [1]}) result = urlscraper.render(table.copy(), P(urlsource=1, urlcol=''), fetch_result=None) self.assertEqual(result.error, '') assert_frame_equal(result.dataframe, table)
def test_module_initial_nop(self): table = pd.DataFrame({'A': [1]}) result = urlscraper.render(table.copy(), P(urlsource=0, urllist=''), fetch_result=None) self.assertEqual(result.error, '') assert_frame_equal(result.dataframe, table)
def test_module_nop_with_missing_col_selection(self): table = pd.DataFrame({"A": [1]}) result = urlscraper.render(table.copy(), P(urlsource="column", urlcol="B"), fetch_result=None) assert_frame_equal(result, table)
def test_module_initial_nop(self): table = pd.DataFrame({"A": [1]}) result = urlscraper.render(table.copy(), P(urlsource="list", urllist=""), fetch_result=None) assert_frame_equal(result, table)