Skip to content

Commit 1531b68

Browse files
committed
chore: change some module name
Signed-off-by: develop-cs <43383361+develop-cs@users.noreply.github.com>
1 parent ff73ea0 commit 1531b68

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
jobs:
1717
verify:
18-
name: Apply pre-commit hooks and launch tests
18+
name: Pre-commit hooks and Tests
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout

src/meteole/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33

44
from meteole._arome import AromeForecast
55
from meteole._arpege import ArpegeForecast
6-
from meteole._client import MeteoFranceClient
76
from meteole._vigilance import Vigilance
87

9-
__all__ = ["AromeForecast", "ArpegeForecast", "MeteoFranceClient", "Vigilance"]
8+
__all__ = ["AromeForecast", "ArpegeForecast", "Vigilance"]
109

1110
__version__ = version("meteole")
1211

src/meteole/_vigilance.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
import matplotlib.pyplot as plt
66
import pandas as pd
77

8-
from meteole import _client, const
8+
from meteole import const
9+
from meteole.client import MeteoFranceClient
910
from meteole.errors import MissingDataError
1011

1112
logger = logging.getLogger(__name__)
1213

1314

14-
class Vigilance(_client.MeteoFranceClient):
15+
class Vigilance(MeteoFranceClient):
1516
"""Wrapper around the meteo-France API for the vigilance data.
1617
Ressources are:
1718
- textesvigilance
File renamed without changes.

src/meteole/forecast.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
import os
55
import shutil
66
import tempfile
7-
from abc import abstractmethod
7+
from abc import ABC, abstractmethod
88
from pathlib import Path
99

1010
import pandas as pd
1111
import xarray as xr
1212
import xmltodict
1313

1414
from meteole import const
15-
from meteole._client import MeteoFranceClient
15+
from meteole.client import MeteoFranceClient
1616
from meteole.errors import MissingDataError
1717

1818
logger = logging.getLogger(__name__)
1919

2020

21-
class Forecast(MeteoFranceClient):
21+
class Forecast(ABC, MeteoFranceClient):
2222
"""
2323
Provides a unified interface to query AROME and ARPEGE endpoints
2424

tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44

5-
from meteole._client import MeteoFranceClient
5+
from meteole.client import MeteoFranceClient
66

77

88
def test_init_with_api_key():
@@ -19,7 +19,7 @@ def test_init_with_token():
1919
assert api.application_id is None
2020

2121

22-
@patch("meteole._client.MeteoFranceClient.connect")
22+
@patch("meteole.client.MeteoFranceClient.connect")
2323
def test_init_with_application_id(mock_connect):
2424
api = MeteoFranceClient(application_id="dummy_app_id")
2525
assert api.application_id == "dummy_app_id"

tests/test_forecast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def test_validate_parameters(self, mock_get_capabilities):
310310
arpege_forecast._validate_parameters()
311311

312312
@patch("meteole._arpege.ArpegeForecast.get_capabilities")
313-
@patch("meteole._client.MeteoFranceClient.connect")
313+
@patch("meteole.client.MeteoFranceClient.connect")
314314
def test_entry_point(self, mock_MeteoFranceClient_connect, mock_get_capabilities):
315315
territory = "EUROPE"
316316
arpege_forecast = ArpegeForecast(territory=territory)

0 commit comments

Comments
 (0)