commit
84b384c47b
|
@ -252,7 +252,7 @@ class UserClientFlask:
|
|||
)
|
||||
self.headers = headers
|
||||
body = next(body).decode("utf-8")
|
||||
assert "Unassgined" in body
|
||||
assert "Unassigned" in body
|
||||
|
||||
def get(
|
||||
self,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="{{ url_for('inventory.devicelist')}}">Inventory</a></li>
|
||||
{% if not lot %}
|
||||
<li class="breadcrumb-item active">Unassgined</li>
|
||||
<li class="breadcrumb-item active">Unassigned</li>
|
||||
{% elif lot.is_temporary %}
|
||||
<li class="breadcrumb-item active">Temporary Lot</li>
|
||||
<li class="breadcrumb-item active">{{ lot.name }}</li>
|
||||
|
|
|
@ -72,7 +72,7 @@ def test_inventory(user3: UserClientFlask):
|
|||
body, status = user3.get('/inventory/device/')
|
||||
|
||||
assert status == '200 OK'
|
||||
assert "Unassgined" in body
|
||||
assert "Unassigned" in body
|
||||
|
||||
|
||||
@pytest.mark.mvp
|
||||
|
@ -184,7 +184,7 @@ def test_inventory_with_device(user3: UserClientFlask):
|
|||
body, status = user3.get('/inventory/device/')
|
||||
|
||||
assert status == '200 OK'
|
||||
assert "Unassgined" in body
|
||||
assert "Unassigned" in body
|
||||
assert db_snapthot.device.devicehub_id in body
|
||||
|
||||
|
||||
|
@ -197,7 +197,7 @@ def test_inventory_filter(user3: UserClientFlask):
|
|||
body, status = user3.get(f'/inventory/device/?filter=Laptop&csrf_token={csrf}')
|
||||
|
||||
assert status == '200 OK'
|
||||
assert "Unassgined" in body
|
||||
assert "Unassigned" in body
|
||||
assert db_snapthot.device.devicehub_id in body
|
||||
|
||||
|
||||
|
|
Reference in New Issue