import pytest

from spz import app
from util.init_db import recreate_tables, insert_resources
from util.build_assets import build_assets


@pytest.fixture
def client():
    client = app.test_client()

    recreate_tables()
    insert_resources()

    build_assets()

    yield client


def test_startpage(client):
    assert client.get('/').status_code == 200

import pytest

from spz import app
from util.init_db import recreate_tables, insert_resources


@pytest.fixture
def client():
    client = app.test_client()

    recreate_tables()
    insert_resources()

    yield client


def test_startpage(client):
    assert client.get('/').status_code == 200

Remove build_assets from test since test client will neither interprete css nor javascript
Remove build_assets from test since test client will neither interprete css nor javascript

  import pytest
  
  from spz import app
  from util.init_db import recreate_tables, insert_resources
- from util.build_assets import build_assets
  
  
  @pytest.fixture
  def client():
      client = app.test_client()
  
      recreate_tables()
      insert_resources()
  
-     build_assets()
- 
      yield client
  
  
  def test_startpage(client):
      assert client.get('/').status_code == 200
  
Remove build_assets from test since test client will neither interprete css nor javascript
## Code Before:
import pytest

from spz import app
from util.init_db import recreate_tables, insert_resources
from util.build_assets import build_assets


@pytest.fixture
def client():
    client = app.test_client()

    recreate_tables()
    insert_resources()

    build_assets()

    yield client


def test_startpage(client):
    assert client.get('/').status_code == 200

## Instruction:
Remove build_assets from test since test client will neither interprete css nor javascript
## Code After:
import pytest

from spz import app
from util.init_db import recreate_tables, insert_resources


@pytest.fixture
def client():
    client = app.test_client()

    recreate_tables()
    insert_resources()

    yield client


def test_startpage(client):
    assert client.get('/').status_code == 200
