Skip to content

Commit

Permalink
[#59] [Feature] Support both Excel and Json data source format
Browse files Browse the repository at this point in the history
  • Loading branch information
ssenart committed Dec 4, 2022
1 parent d4ba4d4 commit 019b710
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_client.py
Expand Up @@ -66,21 +66,21 @@ def test_weekly_live(self):

data = client.loadSince(self.__pceIdentifier, 365, Frequency.WEEKLY)

assert (len(data) == 0)
assert (len(data) == 52)

def test_monthly_live(self):
client = Client(JsonWebDataSource(self.__username, self.__password))

data = client.loadSince(self.__pceIdentifier, 365, Frequency.MONTHLY)

assert (len(data) == 0)
assert (len(data) == 13)

def test_yearly_live(self):
client = Client(JsonWebDataSource(self.__username, self.__password))

data = client.loadSince(self.__pceIdentifier, 365, Frequency.YEARLY)

assert (len(data) == 0)
assert (len(data) == 1)

def test_hourly_sample(self):
client = Client(TestDataSource())
Expand Down

0 comments on commit 019b710

Please sign in to comment.