-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disables pylint checkers: fixme,no-name-in-module,use-dict-literal and redefined-outer-name - fixes the lint issues in test_date_utils - removes lint issues for test_notion - cleans out the easy from notion.py - resolves most lint issues in supplementary_data - cleans some lint in tempo_data
- Loading branch information
Showing
8 changed files
with
84 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
""" | ||
The metrics dash app with data from tempo | ||
""" | ||
|
||
import os | ||
|
||
from dash import Dash, html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
import os | ||
import unittest | ||
|
||
import metrics.notion as notion | ||
|
||
|
||
class TestNotion(unittest.TestCase): | ||
def test_fetch_data(self): | ||
os.environ.pop("NOTION_KEY", None) | ||
|
||
with self.assertRaises(SystemExit) as cm: | ||
notion.OKR().get_okr() | ||
|
||
self.assertEqual(cm.exception.code, "Notion token not provided or NOTION_KEY not set") | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() | ||
""" | ||
Unit tests for the notion class | ||
""" | ||
|
||
import os | ||
import unittest | ||
|
||
from metrics import notion | ||
|
||
|
||
class TestNotion(unittest.TestCase): | ||
"the unit tests" | ||
|
||
def test_fetch_data(self): | ||
os.environ.pop("NOTION_KEY", None) | ||
|
||
with self.assertRaises(SystemExit) as cm: | ||
notion.OKR().get_okr() | ||
|
||
self.assertEqual(cm.exception.code, "Notion token not provided or NOTION_KEY not set") | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |