Support dynamic ports

This commit is contained in:
hcooper
2024-01-23 10:49:43 -08:00
committed by Hereward Cooper
parent f294561d57
commit 1273b20224
27 changed files with 30 additions and 55 deletions

View File

@@ -6,9 +6,7 @@ from typing import Any
import httpx
import pytest
from ..conftest import assert_dicts_compatible, length_from_weight
URL = "http://spoolman:8000"
from ..conftest import URL, assert_dicts_compatible, length_from_weight
def test_add_spool_remaining_weight(random_filament: dict[str, Any]):

View File

@@ -4,7 +4,7 @@ from typing import Any
import httpx
URL = "http://spoolman:8000"
from ..conftest import URL
def test_delete_spool(random_filament: dict[str, Any]):

View File

@@ -7,9 +7,7 @@ from typing import Any
import httpx
import pytest
from ..conftest import assert_lists_compatible
URL = "http://spoolman:8000"
from ..conftest import URL, assert_lists_compatible
@dataclass

View File

@@ -4,7 +4,7 @@ from typing import Any
import httpx
URL = "http://spoolman:8000"
from ..conftest import URL
def test_get_spool(random_filament: dict[str, Any]):

View File

@@ -5,9 +5,7 @@ from typing import Any
import httpx
import pytest
from ..conftest import length_from_weight
URL = "http://spoolman:8000"
from ..conftest import URL, length_from_weight
def test_update_spool(random_filament: dict[str, Any]):

View File

@@ -8,7 +8,7 @@ from typing import Any
import httpx
import pytest
URL = "http://spoolman:8000"
from ..conftest import URL
@pytest.mark.parametrize("use_weight", [0, 0.05, -0.05, 1500]) # 1500 is big enough to use all filament