Skip to content

Commit d007256

Browse files
author
Lucas Mendes Mota da Fonseca
authored
[DF-316] Fix type in hive_metastore_client.py file name (#33)
* Fix type in hive_metastore_client.py file name * Fix testing coverage path in makefile * Fix test name
1 parent d258830 commit d007256

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ python -m pip install --upgrade pip setuptools wheel
108108
109109
#### Project
110110
111-
Library's content live under the [_hive_metastore_client_](https://github.com/quintoandar/hive-metastore-client/tree/main/hive_metastore_client) module, where you'll find the client [main class](https://github.com/quintoandar/hive-metastore-client/blob/main/hive_metastore_client/hive_mestastore_client.py).
111+
Library's content live under the [_hive_metastore_client_](https://github.com/quintoandar/hive-metastore-client/tree/main/hive_metastore_client) module, where you'll find the client [main class](https://github.com/quintoandar/hive-metastore-client/blob/main/hive_metastore_client/hive_metastore_client.py).
112112
113113
## Styleguides
114114

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ unit-tests:
5151
@echo "Unit Tests"
5252
@echo "=========="
5353
@echo ""
54-
@python -m pytest -W ignore::DeprecationWarning --cov-config=.coveragerc --cov-report term --cov-report html:unit-tests-cov --cov=hive-metastore-client --cov-fail-under=90 tests/unit
54+
@python -m pytest -W ignore::DeprecationWarning --cov-config=.coveragerc --cov-report term --cov-report html:unit-tests-cov --cov=hive_metastore_client --cov-fail-under=90 tests/unit
5555

5656
.PHONY: integration-tests
5757
## run integration tests with coverage report
@@ -60,7 +60,7 @@ integration-tests:
6060
@echo "Integration Tests"
6161
@echo "================="
6262
@echo ""
63-
@python -m pytest -W ignore::DeprecationWarning --cov-config=.coveragerc --cov-report term --cov-report xml:integration-tests-cov.xml --cov=hive-metastore-client --cov-fail-under=60 tests/integration
63+
@python -m pytest -W ignore::DeprecationWarning --cov-config=.coveragerc --cov-report term --cov-report xml:integration-tests-cov.xml --cov=hive_metastore_client --cov-fail-under=60 tests/integration
6464

6565
# Style & Lint ================================================================
6666

docs/source/getstarted.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface:
3333
[`thrift_files.libraries.thrift_hive_metastore_client.ThriftHiveMetastore.Iface`](https://github.com/quintoandar/hive-metastore-client/blob/main/thrift_files/libraries/thrift_hive_metastore_client/ThriftHiveMetastore.py).
3434

3535
Beyond the default methods, this library also implements the methods below in
36-
the [`HiveMetastoreClient`](https://github.com/quintoandar/hive-metastore-client/blob/main/hive_metastore_client/hive_mestastore_client.py) class:
36+
the [`HiveMetastoreClient`](https://github.com/quintoandar/hive-metastore-client/blob/main/hive_metastore_client/hive_metastore_client.py) class:
3737

38-
- [`add_columns_to_table`](https://hive-metastore-client.readthedocs.io/en/latest/hive_metastore_client.html#hive_metastore_client.hive_mestastore_client.HiveMetastoreClient.add_columns_to_table)
39-
- [`add_partitions_to_table`](https://hive-metastore-client.readthedocs.io/en/latest/hive_metastore_client.html#hive_metastore_client.hive_mestastore_client.HiveMetastoreClient.add_columns_to_table)
38+
- [`add_columns_to_table`](https://hive-metastore-client.readthedocs.io/en/latest/hive_metastore_client.html#hive_metastore_client.hive_metastore_client.HiveMetastoreClient.add_columns_to_table)
39+
- [`add_partitions_to_table`](https://hive-metastore-client.readthedocs.io/en/latest/hive_metastore_client.html#hive_metastore_client.hive_metastore_client.HiveMetastoreClient.add_columns_to_table)

docs/source/hive_metastore_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Submodules
1313
----------
1414

1515

16-
.. automodule:: hive_metastore_client.hive_mestastore_client
16+
.. automodule:: hive_metastore_client.hive_metastore_client
1717
:members:
1818
:undoc-members:
1919
:show-inheritance:

hive_metastore_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Hive Metastore Client."""
2-
from hive_metastore_client.hive_mestastore_client import HiveMetastoreClient
2+
from hive_metastore_client.hive_metastore_client import HiveMetastoreClient

tests/unit/hive_metastore_client/test_hive_mestastore_client.py renamed to tests/unit/hive_metastore_client/test_hive_metastore_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88

99
class TestHiveMetastoreClient:
10-
@mock.patch("hive_metastore_client.hive_mestastore_client.TSocket")
11-
@mock.patch("hive_metastore_client.hive_mestastore_client.TTransport")
12-
@mock.patch("hive_metastore_client.hive_mestastore_client.TBinaryProtocol")
10+
@mock.patch("hive_metastore_client.hive_metastore_client.TSocket")
11+
@mock.patch("hive_metastore_client.hive_metastore_client.TTransport")
12+
@mock.patch("hive_metastore_client.hive_metastore_client.TBinaryProtocol")
1313
def test__init_protocol(
1414
self, mocked_tbinaryp, mocked_ttransport, mocked_tsocket, hive_metastore_client
1515
):

0 commit comments

Comments
 (0)