Setup and Teardown should be @classmethods setUpClass and tearDownClass #20
Labels
Comments
|
Well spotted - thank you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


if they are not class methods then the method would be invoked for every test and a session would be created for each of those tests.
`class PySparkTest(unittest.TestCase):
@classmethod
def suppress_py4j_logging(cls):
logger = logging.getLogger('py4j')
logger.setLevel(logging.WARN)
The text was updated successfully, but these errors were encountered: