allennlp.common.testing.test_case#

AllenNlpTestCase#

AllenNlpTestCase(self, methodName='runTest')

A custom subclass of :class:~unittest.TestCase that disables some of the more verbose AllenNLP logging and that creates and destroys a temp directory as a test fixture.

FIXTURES_ROOT#

Path subclass for non-Windows systems.

On a POSIX system, instantiating a Path should return this object.

MODULE_ROOT#

Path subclass for non-Windows systems.

On a POSIX system, instantiating a Path should return this object.

PROJECT_ROOT#

Path subclass for non-Windows systems.

On a POSIX system, instantiating a Path should return this object.

TESTS_ROOT#

Path subclass for non-Windows systems.

On a POSIX system, instantiating a Path should return this object.

TOOLS_ROOT#

Path subclass for non-Windows systems.

On a POSIX system, instantiating a Path should return this object.