Beispiel #1
0
    def test_normal(self, monkeypatch, value, title, expected):
        loader = GoogleSheetsTableLoader("dummy")
        loader.table_name = value
        loader.title = title

        monkeypatch.setattr(GoogleSheetsTableLoader, "_sheet_name", self.monkey_property)

        assert loader.make_table_name() == expected
Beispiel #2
0
    def test_exception(self, value, title, expected):
        loader = GoogleSheetsTableLoader("dummy")
        loader.table_name = value
        loader.title = title

        with pytest.raises(expected):
            loader.make_table_name()