MCPcopy Index your code
hub / github.com/plotly/dash / csv_5mb

Function csv_5mb

components/dash-core-components/tests/integration/store/conftest.py:63–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62@pytest.fixture(scope="session")
63def csv_5mb():
64 import mimesis
65
66 buf, chunks = None, []
67 limit = 5 * 1024 * 1024
68 while sys.getsizeof(buf) <= limit:
69 g = mimesis.Generic()
70 chunk = "\n".join(
71 (f"{g.person.full_name()},{g.person.email()}" for _ in range(10000))
72 )
73 chunks.append(chunk)
74 buf = "".join(chunks)
75
76 yield buf[len(chunk) : limit]

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…