Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
WIP correct unit tests after recent change in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed May 7, 2020
1 parent 471f05f commit 5a58b32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
import os
from rkd.context import ContextFactory
from rkd.context import Context
from rkd.inputoutput import NullSystemIO

CURRENT_SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__))


class ContextTest(unittest.TestCase):
def test_loads_internal_context(self) -> None:
discovery = ContextFactory()
discovery = ContextFactory(NullSystemIO())
ctx = discovery._load_context_from_directory(CURRENT_SCRIPT_PATH + '/../src/rkd/internal')

self.assertTrue(isinstance(ctx, Context))
Expand All @@ -24,7 +25,7 @@ def test_loads_internal_context_in_unified_context(self) -> None:
os.environ['RKD_PATH'] = CURRENT_SCRIPT_PATH + '/../docs/examples/makefile-like/.rkd'

try:
discovery = ContextFactory()
discovery = ContextFactory(NullSystemIO())
ctx = discovery.create_unified_context()

# :find-images is defined in docs/examples/makefile-like/.rkd/makefile.py as an alias type task
Expand Down

0 comments on commit 5a58b32

Please sign in to comment.