Skip to content

Commit

Permalink
chore: fix dangling refactored function refs
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed May 12, 2023
1 parent 59e33b9 commit cd68cb3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# def test_provider_pyinquirer_input_hook(change_dir, mocker):
# # mocker.patch(
# # # 'tackle.providers.prompts.hooks.input.prompt',
# # 'tackle.main.update_source',
# # 'tackle.main.parse_source',
# # return_value={"tmp": True},
# # autospec=True
# # )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from tackle import tackle
from tackle.models import Context
from tackle.parser import update_source
from tackle.parser import parse_source

FIXTURES = [
'expanded-string.yaml',
Expand All @@ -18,7 +18,7 @@ def test_provider_system_hook_import(change_dir, target):
context = Context(input_string=target)
# num_providers = len(context.provider_hooks.keys())
num_providers = len(context.private_hooks.keys())
update_source(context)
parse_source(context)
# assert num_providers < len(context.provider_hooks.keys())
assert num_providers < len(context.private_hooks.keys())
# assert 'tackle.providers.tackle-demos' in context.providers.hook_types
Expand Down
10 changes: 5 additions & 5 deletions tests/parser/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# from tackle import tackle
# # from tackle.cli import main
#
# from tackle.parser import update_source
# from tackle.parser import parse_source
# from tackle.models import Context
#
# # INPUT_SOURCES = [
Expand All @@ -15,10 +15,10 @@
# #
# #
# # @pytest.mark.parametrize("input_string,output_dir", INPUT_SOURCES)
# # def test_parser_update_source(change_curdir_fixtures, input_string, output_dir):
# # def test_parser_parse_source(change_curdir_fixtures, input_string, output_dir):
# # """Test various inputs."""
# # context = Context(input_string=input_string, no_input=True)
# # update_source(context)
# # parse_source(context)
# # shutil.rmtree(output_dir)
#
#
Expand All @@ -28,12 +28,12 @@
# assert output
#
#
# def test_parser_update_source_key_to_parent(chdir, mocker):
# def test_parser_parse_source_key_to_parent(chdir, mocker):
# """
# Test that when an input string is not a file/provider source that we correctly
# traverse to the nearest tackle file and run a key within it.
# """
# chdir('fixtures/input-key/child')
# context = Context(input_string="do_things", no_input=True)
# update_source(context)
# parse_source(context)
# print()

0 comments on commit cd68cb3

Please sign in to comment.