Skip to content

Reduce code duplication in tests #635

@mulhod

Description

@mulhod
  • Define train_dir, test_dir, etc. in tests (i.e. in its __init__.py) and then import those variables into all test scripts so that they don't need to constantly be redefined in each tests module.
  • Shape up test tear down/setup methods: There's a lot of repetitive code. And, with pathlib, for example, one can use Path.unlink(missing_ok=True) to eliminate a lot of logic.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions