Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)