Support dynamic ports
This commit is contained in:
@@ -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]):
|
||||
|
||||
@@ -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]):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]):
|
||||
|
||||
@@ -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]):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user