Skip to content

Commit

Permalink
try this package conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasadi committed Nov 28, 2023
1 parent 6fa1a30 commit 12f66be
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pip-tools
pip-compile requirements.in
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Lint
run: make lint
Expand Down
16 changes: 0 additions & 16 deletions requirements.in

This file was deleted.

17 changes: 17 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
httpx==0.25.2
pip==23.3.1
bump2version==0.5.11
wheel==0.33.6
watchdog==0.9.0
flake8==3.7.8
tox==4.8.0
coverage==4.5.4
Sphinx==1.8.5
twine==4.0.2

pytest==7.4.3
pytest-runner==5.1
pytest-watch==4.2.0
bandit==1.7.4
pytest-asyncio==0.21.1
respx==0.20.2
9 changes: 5 additions & 4 deletions tests/test_notificationapi_identify_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"""Tests for `notificationapi_python_server_sdk` package."""

import pytest
import json
import hashlib
import base64
import urllib.parse
import json
from httpx import Response
from notificationapi_python_server_sdk import notificationapi

Expand All @@ -20,6 +20,7 @@
}


@pytest.mark.asyncio
@pytest.mark.parametrize(
"func,params",
[
Expand Down Expand Up @@ -57,11 +58,11 @@
),
],
)
async def test_makes_one_POST_api_call(respx_mock, func, params):
respx_mock.post(api_paths[func]).mock(return_value=Response(200))
async def test_makes_one_post_api_call(respx_mock, func, params):
route = respx_mock.post(api_paths[func]).mock(return_value=Response(200))
notificationapi.init(client_id, client_secret)
await getattr(notificationapi, func)(params)
assert respx_mock.called
assert route.called


@pytest.mark.parametrize(
Expand Down

0 comments on commit 12f66be

Please sign in to comment.