import curses
import npyscreen

from vent.menu import AddForm
from vent.menu import HelpForm
from vent.menu import VentApp
from vent.menu import VentForm
from vent.menu import repo_tools
from vent.menu import repo_values

def test_menu():
    """ Test the menu """
    npyscreen.TEST_SETTINGS['TEST_INPUT'] = ['^X', '^T']
    npyscreen.TEST_SETTINGS['CONTINUE_AFTER_TEST_INPUT'] = True

    A = VentApp()
    try:
        A.run(fork=False)
    except Exception as e:
        pass

def test_repo_tools():
    a = VentApp()
    tools = repo_tools(a, 'master')
    assert type(tools) == list

def test_repo_values():
    a = VentApp()
    branches, commits = repo_values(a)
    assert type(branches) == list
    assert type(commits) == dict

@@ -143,24 +143,134 @@
 rt VentForm%0A
+from vent.menu import ServicesForm%0Afrom vent.menu import ChooseToolsForm%0Afrom vent.menu import AddOptionsForm%0A
 from vent.me
@@ -615,113 +615,388 @@
     
-a = VentApp()%0A    tools = repo_tools(a, 'master')%0A    assert type(tools) == list%0A%0Adef test_repo_values():
+%22%22%22 Test the repo_tools function %22%22%22%0A    repo_value = %7B'repo':'https://github.com/cyberreboot/vent', 'versions':%7B'branch':'commit'%7D%7D%0A    a = VentApp()%0A    tools = repo_tools(a, 'master')%0A    assert type(tools) == list%0A%0Adef test_repo_values():%0A    %22%22%22 Test the repo_values function %22%22%22%0A    repo_value = %7B'repo':'https://github.com/cyberreboot/vent', 'versions':%7B'branch':'commit'%7D%7D
 %0A   

add repo_value and docstrings