From dd2d5c29d502563e6d2cd2947233c3a20f92fa5d Mon Sep 17 00:00:00 2001 From: Sangjoon Bob Lee Date: Mon, 12 Aug 2024 20:01:31 -0400 Subject: [PATCH] Remove files for testing --- run_tests.py | 16 -------------- src/diffpy/nmf_mapping/tests/run.py | 34 ----------------------------- 2 files changed, 50 deletions(-) delete mode 100644 run_tests.py delete mode 100644 src/diffpy/nmf_mapping/tests/run.py diff --git a/run_tests.py b/run_tests.py deleted file mode 100644 index 3fec742..0000000 --- a/run_tests.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python -import sys - -import pytest - -if __name__ == "__main__": - # show output results from every test function - args = ["-v"] - # show the message output for skipped and expected failure tests - if len(sys.argv) > 1: - args.extend(sys.argv[1:]) - print("pytest arguments: {}".format(args)) - # call pytest and exit with the return code from pytest so that - # travis will fail correctly if tests fail - exit_res = pytest.main(args) - sys.exit(exit_res) diff --git a/src/diffpy/nmf_mapping/tests/run.py b/src/diffpy/nmf_mapping/tests/run.py deleted file mode 100644 index db406fa..0000000 --- a/src/diffpy/nmf_mapping/tests/run.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -############################################################################## -# -# (c) 2024 The Trustees of Columbia University in the City of New York. -# All rights reserved. -# -# File coded by: Billinge Group members and community contributors. -# -# See GitHub contributions for a more detailed list of contributors. -# https://github.com/diffpy/diffpy.nmf_mapping/graphs/contributors -# -# See LICENSE.rst for license information. -# -############################################################################## -"""Convenience module for executing all unit tests with -python -m diffpy.nmf_mapping.tests.run -""" - -import sys - -import pytest - -if __name__ == "__main__": - # show output results from every test function - args = ["-v"] - # show the message output for skipped and expected failure tests - if len(sys.argv) > 1: - args.extend(sys.argv[1:]) - print("pytest arguments: {}".format(args)) - # call pytest and exit with the return code from pytest - exit_res = pytest.main(args) - sys.exit(exit_res) - -# End of file