Skip to content

Commit 13e4d66

Browse files
authored
Merge pull request openwallet-foundation#3311 from jamshale/remove-in-mem-wallet
Remove in memory wallet
2 parents bb63ff1 + ae90e12 commit 13e4d66

File tree

254 files changed

+7859
-12056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

254 files changed

+7859
-12056
lines changed

.devcontainer/post-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ markers = [
3131
"postgres: Tests relating to the postgres storage plugin for Indy"]
3232
junit_family = "xunit1"
3333
asyncio_mode = auto
34+
asyncio_default_fixture_loop_scope = module
3435
EOF

.github/actions/run-unit-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
- name: Tests
3131
shell: bash
3232
run: |
33-
poetry run pytest --cov=acapy_agent --cov-report term-missing --cov-report xml --ignore-glob=/tests/* --ignore-glob=demo/* --ignore-glob=docker/* --ignore-glob=docs/* --ignore-glob=scripts/* --ignore-glob=scenarios/* 2>&1 | tee pytest.log
33+
poetry run pytest -n auto --cov=acapy_agent --cov-report term-missing --cov-report xml --ignore-glob=/tests/* --ignore-glob=demo/* --ignore-glob=docker/* --ignore-glob=docs/* --ignore-glob=scripts/* --ignore-glob=scenarios/* 2>&1 | tee pytest.log
3434
PYTEST_EXIT_CODE=${PIPESTATUS[0]}
3535
if grep -Eq "RuntimeWarning: coroutine .* was never awaited" pytest.log; then
3636
echo "Failure: Detected unawaited coroutine warning in pytest output."

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ coverage.xml
5151
.hypothesis/
5252
.pytest_cache/
5353
test-reports/
54+
test.lock
5455

5556
# Translations
5657
*.mo

acapy_agent/admin/request_context.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
from ..config.injector import InjectionError, Injector, InjectType
1010
from ..config.settings import Settings
1111
from ..core.profile import Profile, ProfileSession
12-
from ..utils.classloader import DeferLoad
13-
14-
IN_MEM = DeferLoad("acapy_agent.core.in_memory.InMemoryProfile")
1512

1613

1714
class AdminRequestContext:
@@ -112,10 +109,10 @@ def update_settings(self, settings: Mapping[str, object]):
112109

113110
@classmethod
114111
def test_context(
115-
cls, session_inject: Optional[dict] = None, profile: Optional[Profile] = None
112+
cls, session_inject: dict, profile: Profile
116113
) -> "AdminRequestContext":
117114
"""Quickly set up a new admin request context for tests."""
118-
ctx = AdminRequestContext(profile or IN_MEM.resolved.test_profile())
115+
ctx = AdminRequestContext(profile)
119116
setattr(ctx, "session_inject", {} if session_inject is None else session_inject)
120117
setattr(ctx, "session", ctx._test_session)
121118
return ctx

0 commit comments

Comments
 (0)