You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/01/13 11:42:30 UTC
[GitHub] [airflow] nuclearpinguin commented on a change in pull request
#7091: [AIRFLOW-6489] Separate integrations in tests
nuclearpinguin commented on a change in pull request #7091: [AIRFLOW-6489] Separate integrations in tests
URL: https://github.com/apache/airflow/pull/7091#discussion_r365761099
##########
File path: tests/providers/apache/cassandra/hooks/test_cassandra_hook.py
##########
@@ -30,15 +31,7 @@
from airflow.utils import db
-def cassandra_is_not_up():
- try:
- Cluster(["cassandra"])
- return False
- except UnresolvableContactPoints:
- return True
-
-
-@unittest.skipIf(cassandra_is_not_up(), "Cassandra is not up.")
+@pytest.mark.integration("cassandra")
class TestCassandraHook(unittest.TestCase):
Review comment:
If the reason behind Cassandra flakiness was lack of resources then this is should work.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services