Changeset e230c40 in flexoentity for tests/conftest.py


Ignore:
Timestamp:
12/08/25 10:13:10 (5 weeks ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
master
Children:
3d598d5
Parents:
1f5bf2d
Message:

fix some tests to mirror new entity manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/conftest.py

    r1f5bf2d re230c40  
    2828
    2929@pytest.fixture
    30 def backend():
     30def local_backend():
    3131    return InMemoryBackend(Domain)
    3232
     33@pytest.fixture
     34def staging_backend():
     35    return InMemoryBackend(Domain)
    3336
    3437@pytest.fixture
    35 def sample_domain_manager(backend):
    36     return DomainManager(CompositeBackend(authoritative_backend=backend,
    37                                           sync_backends=None), EntityRegistry())
     38def permanent_backend():
     39    return InMemoryBackend(Domain)
     40
     41@pytest.fixture
     42def sample_domain_manager(local_backend, staging_backend, permanent_backend):
     43    return DomainManager(local_backend=local_backend,
     44                         staging_backend=staging_backend,
     45                         permanent_backend=CompositeBackend(authoritative_backend=permanent_backend,
     46                                                            sync_backends=None),
     47                         registry=EntityRegistry())
    3848
    3949# ─────────────────────────────────────────────────────────────
Note: See TracChangeset for help on using the changeset viewer.