Skip to content

Commit 9a47227

Browse files
Changed all the occurrences of CovidAPIv1 to CovidAPIv1Integrator.
1 parent e9df64f commit 9a47227

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/integrators/covid_api_v1_integrator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
# Create a model and its methods
23-
class CovidAPIv1:
23+
class CovidAPIv1Integrator:
2424
""" Model and Its methods """
2525
def __init__(self) -> None:
2626
""" Get data from helper -> the source data """

app/routers/v1/router_api_v1.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from fastapi import HTTPException
1212

13-
from integrators.covid_api_v1_integrator import CovidAPIv1
13+
from integrators.covid_api_v1_integrator import CovidAPIv1Integrator
1414
from utils.helper import helper_lookup_country
1515
from . import v1
1616

@@ -21,7 +21,7 @@ def reload_api_v1_integrator(func):
2121
@wraps(func)
2222
def wrapper(*args, **kwargs):
2323
global COVID_API_V1, dt, ts
24-
COVID_API_V1 = CovidAPIv1()
24+
COVID_API_V1 = CovidAPIv1Integrator()
2525
dt, ts = COVID_API_V1.datetime_raw, COVID_API_V1.timestamp
2626
return func(*args, **kwargs)
2727
return wrapper

app/tests/test_covid_integrator_api_v1.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
# Prepare the model
15-
INTEGRATOR = covid_api_v1_integrator.CovidAPIv1()
15+
INTEGRATOR = covid_api_v1_integrator.CovidAPIv1Integrator()
1616

1717
# Test Initial attributes
1818
def test_init() -> None:

0 commit comments

Comments
 (0)