How to use the approvaltests.core.namer.StackFrameNamer function in approvaltests

To help you get started, we’ve selected a few approvaltests examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github approvals / ApprovalTests.Python / approvaltests / approvals.py View on Github external
def get_default_namer(extension=None):
    return StackFrameNamer(extension)
github approvals / ApprovalTests.Python / tests / test_namer.py View on Github external
def test_method(self):
        n = StackFrameNamer()
        self.assertEqual("test_method", n.get_method_name())
github approvals / ApprovalTests.Python / tests / test_namer.py View on Github external
def test_basename(self):
        n = StackFrameNamer()
        self.assertTrue(n.get_basename().endswith("NamerTests.test_basename"), n.get_basename())