# Path: pypi_portal/blueprints.py
# def _factory(partial_module_string, url_prefix):


import importlib
import pytest
from flask import Blueprint
from pypi_portal.blueprints import _factory, all_blueprints




def test_blueprint_instances():
    assert all([isinstance(bp, Blueprint) for bp in all_blueprints])
    assert len(all_blueprints) == len(set([bp.url_prefix for bp in all_blueprints if bp.url_prefix]))

# Path: pypi_portal/blueprints.py
# def _factory(partial_module_string, url_prefix):


# Path: tests/test_blueprints.py
import importlib
import pytest
from flask import Blueprint
from pypi_portal.blueprints import _factory, all_blueprints





def test_blueprint_instances():
    assert all([isinstance(bp, Blueprint) for bp in all_blueprints])
    assert len(all_blueprints) == len(set([bp.url_prefix for bp in all_blueprints if bp.url_prefix]))

    assert all([b.import_name.startswith('pypi_portal.views.') for b in all_blueprints])