Skip to content

Commit

Permalink
Test for issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Dec 9, 2015
1 parent 70733df commit c9aa7e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ccdb/cmd/console_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from ccdb import AlchemyProvider
from . import themes

import ccdb.cmd.colorama
from . import colorama

import readline

Expand Down Expand Up @@ -663,7 +663,7 @@ def print_info(self):
def print_interactive_intro(self):
print("""
+--------------------------+
CCDB shell v.1.05b
CCDB shell v.1.06.01
+--------------------------+
""")
print(self.theme.Title + "Interactive mode")
Expand Down
6 changes: 6 additions & 0 deletions python/tests/test_console_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ def test_cat(self):
self.context.process_command_line("cat /test/test_vars/test_table")
self.assertIn("2.3", self.output.getvalue())

def test_variation_backup(self):
"""Test Backup of """

self.context.process_command_line("cat /test/test_vars/test_table:100:test")
self.assertIn("2.2", self.output.getvalue())


def test_cd(self):
"""cd. General test"""
Expand Down

0 comments on commit c9aa7e7

Please sign in to comment.