def test_makefile_has_a_tab_false(): fake_makefile_path = 'UNUSED' fake_contents = 'target:\n command' with patch('paasta_tools.cli.cmds.check.get_file_contents', autospec=True, return_value=fake_contents): assert makefile_has_a_tab(fake_makefile_path) is False
def test_makefile_has_a_tab_true(): fake_makefile_path = 'UNUSED' fake_contents = 'target:\n\tcommand' with contextlib.nested( patch('paasta_tools.cli.cmds.check.get_file_contents', autospec=True, return_value=fake_contents), ) as (mock_get_file_contents, ): assert makefile_has_a_tab(fake_makefile_path) is True
def test_makefile_has_a_tab_false(): fake_makefile_path = "UNUSED" fake_contents = "target:\n command" with patch( "paasta_tools.cli.cmds.check.get_file_contents", autospec=True, return_value=fake_contents, ): assert makefile_has_a_tab(fake_makefile_path) is False
def test_makefile_has_a_tab_false(): fake_makefile_path = 'UNUSED' fake_contents = 'target:\n command' with contextlib.nested( patch( 'paasta_tools.cli.cmds.check.get_file_contents', autospec=True, return_value=fake_contents ), ) as ( mock_get_file_contents, ): assert makefile_has_a_tab(fake_makefile_path) is False