Skip to content

Commit 921fb71

Browse files
committed
define env vars for testing
1 parent c3668e3 commit 921fb71

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
12+
env:
13+
DATABASE_NAME: 'mock_database_name'
14+
DATABASE_PARENT_ID: 'mock_database_parent_id'
15+
NOTION_TOKEN: 'mock_notion_token'
1316
steps:
1417
- uses: actions/checkout@v2
1518
- name: Set up Python 3.7

tests/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _verify_database_obj(self, database_obj):
3333
self.assertEqual(title['text']['content'], os.environ['DATABASE_NAME'])
3434
parent = database_obj['parent']
3535
self.assertEqual(parent['type'], 'page_id')
36-
self.assertIsInstance(parent['page_id'], str)
36+
self.assertEqual(parent['page_id'], os.environ['DATABASE_PARENT_ID'])
3737
properties = database_obj['properties']
3838
self.assertEqual(properties['Name'], {'title': {}})
3939
self.assertEqual(properties['Description'], {'rich_text': {}})

0 commit comments

Comments
 (0)