MCPcopy
hub / github.com/burnash/gspread / init

Method init

tests/client_test.py:21–30  ·  view source on GitHub ↗
(
        self: "ClientTest", client: Client, request: FixtureRequest
    )

Source from the content-addressed store, hash-verified

19
20 @pytest.fixture(scope="function", autouse=True)
21 def init(
22 self: "ClientTest", client: Client, request: FixtureRequest
23 ) -> Generator[None, None, None]:
24 ClientTest.gc = client
25 name = self.get_temporary_spreadsheet_title(request.node.name)
26 ClientTest.spreadsheet = client.create(name)
27
28 yield
29
30 client.del_spreadsheet(ClientTest.spreadsheet.id)
31
32 @pytest.mark.vcr()
33 def test_no_found_exeption(self):

Callers

nothing calls this directly

Calls 3

createMethod · 0.80
del_spreadsheetMethod · 0.80

Tested by

no test coverage detected