From 2ba872e18be3ec8265cb75bbfd81ef6bba88223d Mon Sep 17 00:00:00 2001 From: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> Date: Tue, 10 Oct 2023 22:30:49 +0200 Subject: [PATCH] Add record to docs --- openbb_platform/CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openbb_platform/CONTRIBUTING.md b/openbb_platform/CONTRIBUTING.md index 94cc12b1b0f..458cd0fd2a5 100644 --- a/openbb_platform/CONTRIBUTING.md +++ b/openbb_platform/CONTRIBUTING.md @@ -262,6 +262,12 @@ python openbb_platform/providers/tests/utils/unit_tests_generator.py The automatic unit test generation will add unit tests for all the fetchers available in a given provider. +To record the unit tests, you can run the following command: + +```bash +pytest --record=all +``` + > Note that sometimes manual intervention is needed. For example, adjusting out-of-top level imports or adding specific arguments for a given fetcher. ### Integration tests