You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/10/18 19:13:00 UTC
[airflow] branch master updated: Fix minor typos in tests (#11638)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 885db90 Fix minor typos in tests (#11638)
885db90 is described below
commit 885db908d58838852e5c6b94090c9d00dfbb621a
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Sun Oct 18 20:12:05 2020 +0100
Fix minor typos in tests (#11638)
`cllient` -> `client`
`environement` -> `environment`
`naamespace` -> `namespace`
`alllow` -> `allow`
---
tests/api/auth/test_client.py | 2 +-
tests/core/test_configuration.py | 2 +-
tests/providers/google/firebase/hooks/test_firestore.py | 2 +-
tests/providers/google/firebase/operators/test_firestore.py | 2 +-
tests/providers/mysql/hooks/test_mysql.py | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/api/auth/test_client.py b/tests/api/auth/test_client.py
index 0924e5a..3275f6e 100644
--- a/tests/api/auth/test_client.py
+++ b/tests/api/auth/test_client.py
@@ -31,7 +31,7 @@ class TestGetCurrentApiClient(unittest.TestCase):
("cli", 'api_client'): 'airflow.api.client.json_client',
("cli", 'endpoint_url'): 'http://localhost:1234',
})
- def test_should_create_cllient(self, mock_client):
+ def test_should_create_client(self, mock_client):
result = get_current_api_client()
mock_client.assert_called_once_with(
diff --git a/tests/core/test_configuration.py b/tests/core/test_configuration.py
index 3a37434..094bc61 100644
--- a/tests/core/test_configuration.py
+++ b/tests/core/test_configuration.py
@@ -559,7 +559,7 @@ notacommand = OK
self.assertEqual(test_cmdenv_conf.get('testcmdenv', 'itsacommand'), 'OK')
# AIRFLOW__TESTCMDENV__NOTACOMMAND_CMD maps to no entry in sensitive_config_values and therefore
# the option should return 'OK' from the configuration, and must not return 'NOT OK' from
- # the environement variable's echo command
+ # the environment variable's echo command
self.assertEqual(test_cmdenv_conf.get('testcmdenv', 'notacommand'), 'OK')
def test_parameterized_config_gen(self):
diff --git a/tests/providers/google/firebase/hooks/test_firestore.py b/tests/providers/google/firebase/hooks/test_firestore.py
index 871dd94..fe8c16e 100644
--- a/tests/providers/google/firebase/hooks/test_firestore.py
+++ b/tests/providers/google/firebase/hooks/test_firestore.py
@@ -33,7 +33,7 @@ from tests.providers.google.cloud.utils.base_gcp_mock import (
)
EXPORT_DOCUMENT_BODY = {
- "outputUriPrefix": "gs://test-bucket/test-naamespace/",
+ "outputUriPrefix": "gs://test-bucket/test-namespace/",
"collectionIds": ["test-collection"],
}
diff --git a/tests/providers/google/firebase/operators/test_firestore.py b/tests/providers/google/firebase/operators/test_firestore.py
index cf8f32e..549a9de 100644
--- a/tests/providers/google/firebase/operators/test_firestore.py
+++ b/tests/providers/google/firebase/operators/test_firestore.py
@@ -24,7 +24,7 @@ TEST_OUTPUT_URI_PREFIX: str = "gs://example-bucket/path"
TEST_PROJECT_ID: str = "test-project-id"
EXPORT_DOCUMENT_BODY = {
- "outputUriPrefix": "gs://test-bucket/test-naamespace/",
+ "outputUriPrefix": "gs://test-bucket/test-namespace/",
"collectionIds": ["test-collection"],
}
diff --git a/tests/providers/mysql/hooks/test_mysql.py b/tests/providers/mysql/hooks/test_mysql.py
index 86b3107..5dc3ee2 100644
--- a/tests/providers/mysql/hooks/test_mysql.py
+++ b/tests/providers/mysql/hooks/test_mysql.py
@@ -399,7 +399,7 @@ class TestMySql(unittest.TestCase):
with MySqlContext(client):
hook = MySqlHook('airflow_db')
priv = hook.get_first("SELECT @@global.secure_file_priv")
- # Use random names to alllow re-running
+ # Use random names to allow re-running
if priv and priv[0]:
# Confirm that no error occurs
hook.bulk_dump(