Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use uri for mongo sb517 #7

Merged
merged 40 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6a4a30c
just use URI to specify mongo host
JunAishima Dec 12, 2023
779243b
fix to use URI for tests as well
JunAishima Dec 12, 2023
24137cc
fix syntax errors, fix error message about incorrect URI
JunAishima Dec 12, 2023
06c04da
fix definitions used for testing
JunAishima Dec 12, 2023
47295cc
fix syntax error and missed hostname
JunAishima Dec 12, 2023
57ea1b1
restore mongohost parameter
JunAishima Dec 12, 2023
20a266d
fix bad URI test
JunAishima Dec 12, 2023
603f605
update versioneer
JunAishima Dec 13, 2023
7ec5903
add conftrak_startup to setup
JunAishima Dec 13, 2023
9864150
move startup.py into main codebase
JunAishima Dec 13, 2023
50ddcf3
update import now that we are in the main code repo
JunAishima Dec 13, 2023
79ca1c0
update commandline path after moving startup.py
JunAishima Dec 13, 2023
7ecf60c
remove index creation
JunAishima Jan 16, 2024
5b3afa8
add conftest that creates conftrak service for testing
JunAishima Jan 23, 2024
0cab409
enable testing mode to be run
JunAishima Jan 24, 2024
45ceb1c
add mongomock to dependencies
JunAishima Jan 24, 2024
a29479f
make conftest the central place for all tests
JunAishima Jan 24, 2024
7f14d6b
add mongomock dependency to conda env
JunAishima Jan 24, 2024
31ffc94
remove mongodb - only use mongomock for tests
JunAishima Jan 24, 2024
faaa333
clean up testing case
JunAishima Jan 25, 2024
0022766
modify test to use fixtures in conftest
JunAishima Jan 25, 2024
2fcac39
reformat conftest to not be created with an explicit dict
JunAishima Jan 25, 2024
118f300
use our fixtures, remove use of utils
JunAishima Jan 25, 2024
02043e9
rename to remove number
JunAishima Jan 25, 2024
c7c4b7b
remove tests from conftest.py
JunAishima Jan 25, 2024
0089ba0
clean up, remove not-useful test
JunAishima Jan 25, 2024
cc9366b
add app fixture for Tornado server tests
JunAishima Jan 25, 2024
0c16efb
update requirements, including for testing
JunAishima Jan 25, 2024
1f35c7e
rename tests files to remove numbers
JunAishima Jan 25, 2024
5fecc21
fix pytest-tornado to 0.8.1
JunAishima Jan 25, 2024
7eff977
use Tornado HTTPClient and clean up
JunAishima Jan 26, 2024
1f8f1a0
remove pytest-tornado requirement
JunAishima Jan 26, 2024
b9e239a
expand testing suite
JunAishima Jan 26, 2024
bdad05b
move import into code block
JunAishima Jan 26, 2024
9d38ebc
remove unnecessary imports
JunAishima Jan 29, 2024
51be5c6
black formatting for all files
JunAishima Jan 29, 2024
86ff07d
remove fixture that is no longer required
JunAishima Jan 29, 2024
0a330b9
remove pytest mark decorators, clean up imports
JunAishima Jan 29, 2024
5df5ec3
remove pytest-tornado - no longer required
JunAishima Jan 29, 2024
b6e7d30
remove unused utils package
JunAishima Jan 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
dependencies: ["pip", "conda"]
fail-fast: false

Expand All @@ -29,9 +29,6 @@ jobs:
- name: Checkout the code
uses: actions/checkout@v2

- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.6.0

- name: Set up Python ${{ matrix.python-version }} with conda
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -56,7 +53,7 @@ jobs:
if: matrix.dependencies == 'conda'
run: |
set -vxeo pipefail
conda install -y -c conda-forge doct jsonschema mock pymongo pytest pyyaml requests tornado ujson
conda install -y -c conda-forge doct jsonschema mock mongomock pymongo pytest pyyaml requests tornado ujson

- name: Install the package
run: |
Expand Down
3 changes: 3 additions & 0 deletions conftrak/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

from . import _version
__version__ = _version.get_versions()['version']
Loading
Loading