Establishes a new pytest mark, unit, to be used for unit tests
Changes in src/decisionengine/framework/engine/tests/test_verify_redis_server.py as a model for other test files
a. Mark the appropriate tests as unit tests;
b. Where possible, mock out external dependencies (like the redis.Redis.ping() method returning True or throwing an exception, so more tests are true unit tests.
c. For the one integration test in this file, run it only if a redis server is actually running. Otherwise skip it.
This PR has two changes:
unit
, to be used for unit testssrc/decisionengine/framework/engine/tests/test_verify_redis_server.py
as a model for other test files a. Mark the appropriate tests as unit tests; b. Where possible, mock out external dependencies (like theredis.Redis.ping()
method returningTrue
or throwing an exception, so more tests are true unit tests. c. For the one integration test in this file, run it only if a redis server is actually running. Otherwise skip it.