Skip to content

Commit 7fdefa7

Browse files
authored
fix(tests): multiple (#50)
* fix incorrect test_context for engines * use ANALYTICS_API_QAR_USERNAME_SERIAL & ANALYTICS_API_QAR_PASSWORD environment variables * update requirements.txt with latest dependencies
1 parent 3ba9fe7 commit 7fdefa7

23 files changed

+76
-62
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: CI
22

33
env:
4-
ANALYTICS_API_USERNAME_SERIAL: ${{ secrets.ANALYTICS_API_USERNAME_SERIAL }}
5-
ANALYTICS_API_PASSWORD: ${{ secrets.ANALYTICS_API_PASSWORD }}
4+
ANALYTICS_API_QAR_USERNAME_SERIAL: ${{ secrets.ANALYTICS_API_QAR_USERNAME_SERIAL }}
5+
ANALYTICS_API_QAR_PASSWORD: ${{ secrets.ANALYTICS_API_QAR_PASSWORD }}
66

77
on:
88
push:
@@ -17,10 +17,10 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919

20-
- name: Set up Python 3.6
20+
- name: Set up Python 3.8
2121
uses: actions/setup-python@v2
2222
with:
23-
python-version: 3.6
23+
python-version: 3.8
2424

2525
- name: Build and install new SDK
2626
run: |

examples/afi_optimizer_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
from urllib3 import Retry
1919

2020
host = "https://api.factset.com"
21-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
22-
password = os.environ["ANALYTICS_API_PASSWORD"]
21+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
22+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
2323

2424

2525
def main():

examples/axp_optimizer_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
from urllib3 import Retry
2121

2222
host = "https://api.factset.com"
23-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
24-
password = os.environ["ANALYTICS_API_PASSWORD"]
23+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
24+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
2525

2626

2727
def main():

examples/bpm_optimizer_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
from urllib3 import Retry
1919

2020
host = "https://api.factset.com"
21-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
22-
password = os.environ["ANALYTICS_API_PASSWORD"]
21+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
22+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
2323

2424

2525
def main():

examples/fi_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from urllib3 import Retry
1818

1919
host = "https://api.factset.com"
20-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
21-
password = os.environ["ANALYTICS_API_PASSWORD"]
20+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
21+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
2222

2323

2424
def main():

examples/fpo_optimizer_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from urllib3 import Retry
2222

2323
host = "https://api.factset.com"
24-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
25-
password = os.environ["ANALYTICS_API_PASSWORD"]
24+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
25+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
2626

2727

2828
def main():

examples/pa_engine_multiple_unit_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from urllib3 import Retry
2020

2121
host = "https://api.factset.com"
22-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
23-
password = os.environ["ANALYTICS_API_PASSWORD"]
22+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
23+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
2424

2525

2626
def main():

examples/pa_engine_single_unit_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from urllib3 import Retry
2020

2121
host = "https://api.factset.com"
22-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
23-
password = os.environ["ANALYTICS_API_PASSWORD"]
22+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
23+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
2424

2525

2626
def main():

examples/pub_engine_multiple_unit_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
from pathlib import Path
1515

1616
host = "https://api.factset.com"
17-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
18-
password = os.environ["ANALYTICS_API_PASSWORD"]
17+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
18+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
1919

2020

2121
def main():

examples/pub_engine_single_unit_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
from urllib3 import Retry
1515

1616
host = "https://api.factset.com"
17-
username = os.environ["ANALYTICS_API_USERNAME_SERIAL"]
18-
password = os.environ["ANALYTICS_API_PASSWORD"]
17+
username = os.environ["ANALYTICS_API_QAR_USERNAME_SERIAL"]
18+
password = os.environ["ANALYTICS_API_QAR_PASSWORD"]
1919

2020

2121
def main():

0 commit comments

Comments
 (0)