From 2efcda271a5610523caf6a170a08df2a715d5253 Mon Sep 17 00:00:00 2001 From: bdattoma Date: Wed, 22 May 2024 13:50:59 +0200 Subject: [PATCH] add docstring with example of usage --- ods_ci/utils/scripts/fetch_tests.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ods_ci/utils/scripts/fetch_tests.py b/ods_ci/utils/scripts/fetch_tests.py index 60f0ca8bf..729690ccf 100644 --- a/ods_ci/utils/scripts/fetch_tests.py +++ b/ods_ci/utils/scripts/fetch_tests.py @@ -1,3 +1,19 @@ +""" +Examples +Input: +python3 ods_ci/utils/scripts/fetch_tests.py --test-repo git@github.com:red-hat-data-services/ods-ci.git --ref1 releases/2.8.0 --ref2-auto true --selector-attribute creatordate -A new-arg-file.txt +Output: +---| Computing differences |---- +Done. Found 30 new tests in releases/2.8.0 which were not present in origin/releases/2.7.0 + +Input: +python3 ods_ci/utils/scripts/fetch_tests.py --test-repo git@github.com:red-hat-data-services/ods-ci.git --ref1 master --ref2-auto true --selector-attribute creatordate -A new-arg-file.txt +Output: +---| Computing differences |---- +Done. Found 14 new tests in master which were not present in origin/releases/2.9.0 + +""" + import argparse import os import shutil