'Testing private methods in pytest
I have class OctoApi. It has two private methods __headers_generate and __data_generate. I get it in tests through fixture
@pytest.fixture()
def api():
return octo.api.OctoApi(AUTH_TOKEN)
How do I create tests for these methods?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
