generated from MITLibraries/python-cli-template
-
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.
Merge pull request #27 from MITLibraries/HRQB-18-connection-tests
HRQB 18 - Data warehouse and Quickbase connection tests
- Loading branch information
Showing
12 changed files
with
208 additions
and
24 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
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
Empty file.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""tests.oracle.test_connections | ||
These integration tests will bypass monkey-patched env vars and require real values | ||
for the following env vars: | ||
- QUICKBASE_API_URL | ||
- QUICKBASE_API_TOKEN | ||
- QUICKBASE_APP_ID | ||
- DATA_WAREHOUSE_CONNECTION_STRING | ||
""" | ||
|
||
import oracledb | ||
import pytest | ||
|
||
from hrqb.utils.data_warehouse import DWClient | ||
from hrqb.utils.quickbase import QBClient | ||
|
||
|
||
@pytest.mark.integration() | ||
def test_integration_oracle_client_installed_success(): | ||
oracledb.init_oracle_client() | ||
|
||
|
||
@pytest.mark.integration() | ||
def test_integration_data_warehouse_connection_success(): | ||
dwclient = DWClient() | ||
assert dwclient.test_connection() | ||
|
||
|
||
@pytest.mark.integration() | ||
def test_integration_quickbase_api_connection_success(): | ||
qbclient = QBClient() | ||
assert qbclient.test_connection() |
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