Skip to content

Commit 0660e89

Browse files
committed
fix tests and overwrite everything
1 parent 2485b43 commit 0660e89

File tree

486 files changed

+10566
-725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+10566
-725
lines changed

.bumpversion.cfg

-9
This file was deleted.

.coveragerc

-8
This file was deleted.

.github/workflows/build.yaml

-23
This file was deleted.

.github/workflows/forked_repos.yaml

-25
This file was deleted.

.github/workflows/run_tests.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Run Tests
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
python_tests:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.7", "3.8", "3.9"]
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install python-dotenv
24+
python -m pip install unittest-data-provider
25+
pip install -r requirements.txt
26+
- name: Run Integration Tests
27+
run:
28+
python -m unittest test/Integration/test_*.py
29+
env:
30+
LOB_API_TEST_KEY: ${{ secrets.LOB_API_TEST_KEY }}
31+
LOB_API_LIVE_KEY: ${{ secrets.LOB_API_LIVE_KEY }}
32+
- name: Run Unit Tests
33+
run:
34+
python -m unittest test/Unit/test_*.py
35+
env:
36+
LOB_API_TEST_KEY: ${{ secrets.LOB_API_TEST_KEY }}
37+
LOB_API_LIVE_KEY: ${{ secrets.LOB_API_LIVE_KEY }}

.gitignore

+45-29
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,69 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
13
*.py[cod]
4+
*$py.class
25

36
# C extensions
47
*.so
58

6-
# Packages
7-
*.egg
8-
*.egg-info
9-
dist
10-
build
11-
eggs
12-
parts
13-
bin
14-
var
15-
sdist
16-
develop-eggs
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
1724
.installed.cfg
18-
lib
19-
lib64
20-
__pycache__
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
2132

2233
# Installer logs
2334
pip-log.txt
35+
pip-delete-this-directory.txt
2436

2537
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
2640
.coverage
27-
.tox
41+
.coverage.*
42+
.cache
2843
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
2951

3052
# Translations
3153
*.mo
54+
*.pot
3255

33-
# Mr Developer
34-
.mr.developer.cfg
35-
.project
36-
.pydevproject
56+
# Django stuff:
57+
*.log
3758

3859
# Sphinx documentation
3960
docs/_build/
4061

41-
# Generated Files
42-
examples/**/success.csv
43-
examples/**/errors.csv
44-
examples/**/verified.csv
45-
46-
# Editor files
47-
*.sublime-*
62+
# PyBuilder
63+
target/
4864

49-
# macOS
50-
.DS_Store
65+
#Ipython Notebook
66+
.ipynb_checkpoints
5167

52-
# dotenv file
68+
# Secrets
5369
.env

.gitlab-ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# ref: https://docs.gitlab.com/ee/ci/README.html
2+
3+
stages:
4+
- test
5+
6+
.tests:
7+
stage: test
8+
script:
9+
- pip install -r requirements.txt
10+
- pip install -r test-requirements.txt
11+
- pytest --cov=lob_python
12+
13+
test-3.6:
14+
extends: .tests
15+
image: python:3.6-alpine
16+
test-3.7:
17+
extends: .tests
18+
image: python:3.7-alpine
19+
test-3.8:
20+
extends: .tests
21+
image: python:3.8-alpine
22+
test-3.9:
23+
extends: .tests
24+
image: python:3.9-alpine

.openapi-generator-ignore

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
24+
25+
26+
lob_python/api/default_api.py
27+
lob_python/model/placeholder_model.py
28+
docs/DefaultApi.md
29+
docs/PlaceholderModel.md
30+
test/
31+
.gitignore
32+
.env
33+
requirements.txt

0 commit comments

Comments
 (0)