1
0
Fork 0
fgmeta/python3-flightgear/flightgear/meta/tests
Florent Rougon 8028ce2888 Python: move test modules and data to python3-flightgear/flightgear/meta/tests/
- Move test_catalog.py, test_sgprops.py and catalog/testData/ to
  python3-flightgear/flightgear/meta/tests/.
- Copy catalog/fgaddon-catalog/ to the same place (it is needed by
  test_catalog.py).
- Adapt test_catalog.py and test_sgprops.py accordingly.
- Remove the executable bits from test_catalog.py and test_sgprops.py:
  this is because test_catalog.py can't be run directly anymore; well,
  it can but 3 tests would fail in this setup. No time to investigate
  why (sorry), but this commit adds a README.txt in
  python3-flightgear/flightgear/meta/tests/README.txt that explains how
  to run the tests in a way that works (basically, run
  'python3 -m unittest' from the python3-flightgear directory).

For a bit more context, see
<https://sourceforge.net/p/flightgear/mailman/message/37042247/>.
2020-06-22 00:30:51 +02:00
..
fgaddon-catalog Python: move test modules and data to python3-flightgear/flightgear/meta/tests/ 2020-06-22 00:30:51 +02:00
testData Python: move test modules and data to python3-flightgear/flightgear/meta/tests/ 2020-06-22 00:30:51 +02:00
__init__.py Python: move test modules and data to python3-flightgear/flightgear/meta/tests/ 2020-06-22 00:30:51 +02:00
README.txt Python: move test modules and data to python3-flightgear/flightgear/meta/tests/ 2020-06-22 00:30:51 +02:00
test_catalog.py Python: move test modules and data to python3-flightgear/flightgear/meta/tests/ 2020-06-22 00:30:51 +02:00
test_sgprops.py Python: move test modules and data to python3-flightgear/flightgear/meta/tests/ 2020-06-22 00:30:51 +02:00

The tests can be run this way:

  cd python3-flightgear
  python3 -m unittest

If you want to be more specific:

  cd python3-flightgear
  python3 -m unittest flightgear.meta.tests.test_catalog
  python3 -m unittest flightgear.meta.tests.test_sgprops
  python3 -m unittest flightgear.meta.tests.test_catalog.UpdateCatalogTests
  python3 -m unittest flightgear.meta.tests.test_catalog.UpdateCatalogTests.test_scan_set
  etc.