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

Method init

tests/cell_test.py:21–31  ·  view source on GitHub ↗
(
        self: "CellTest", 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: "CellTest", client: Client, request: FixtureRequest
23 ) -> Generator[None, None, None]:
24 # User current test name in spreadsheet name
25 name = self.get_temporary_spreadsheet_title(request.node.name)
26 CellTest.spreadsheet = client.create(name)
27 CellTest.sheet = CellTest.spreadsheet.sheet1
28
29 yield
30
31 client.del_spreadsheet(CellTest.spreadsheet.id)
32
33 @pytest.mark.vcr()
34 def test_properties(self):

Callers

nothing calls this directly

Calls 3

createMethod · 0.80
del_spreadsheetMethod · 0.80

Tested by

no test coverage detected