Skip to content

Commit

Permalink
commented out local dev debug settings
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbetts committed Oct 14, 2023
1 parent 8178633 commit 7f447c3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ poetry = "^1.5.1"
pytest = "^7.3.1"
certifi = "^2023.7.22"
coverage = {extras = ["toml"], version = "^7.2.7"}
pytest-dotenv = "^0.5.2"
pytest-dotenv = "0.5.2"
black = "^23.3.0"
mypy = "^1.4.1"
pytest-asyncio = "^0.21.1"
Expand Down Expand Up @@ -67,10 +67,10 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.pytest]
env_files = [".env_test"]
testpaths = ["tests"]

[tool.pytest.ini_options]
env_files = [".env"]
testpaths = ["tests"]
asyncio_mode = "strict"
log_cli = true
log_level = "DEBUG"
Expand Down
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ def test_settings():
logger.info(os.environ)
api_port = os.environ.get("RMQ_API_PORT", "15672")
amqp_port = os.environ.get("RMQ_AMQP_PORT", "5672")
# api_port = "15673"
# amqp_port = "5673"

yield {
"api_scheme": "http",
Expand Down
5 changes: 5 additions & 0 deletions tests/test_nuropb_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ async def test_client_and_service_api_quick_setup(test_settings, rmq_settings):
client_api = create_client(
connection_properties={
"vhost": connection_properties["vhost"],
"port": rmq_settings["port"],
"host": rmq_settings["host"],
}
)
await client_api.connect()
Expand All @@ -44,17 +46,20 @@ async def test_client_and_service_api_quick_setup_raw_defaults(rmq_settings):
configure_mesh(
connection_properties={
"port": rmq_settings["port"],
"host": rmq_settings["host"],
}
)
service_api = create_service(
name="test_service",
connection_properties={
"port": rmq_settings["port"],
"host": rmq_settings["host"],
}
)
await service_api.connect()
client_api = create_client(connection_properties={
"port": rmq_settings["port"],
"host": rmq_settings["host"],
})
await client_api.connect()

Expand Down

0 comments on commit 7f447c3

Please sign in to comment.