From fd7bbf009817a16dd5d8f14e3e0cf79ca49f4939 Mon Sep 17 00:00:00 2001 From: Abhijeet Kaur Date: Sun, 28 May 2017 05:11:55 +0530 Subject: [PATCH] bots: Remove already present test function in virtual_fs bot. Remove test function for virtual_fs bot from virtual_fs.py file. --- contrib_bots/bots/virtual_fs/virtual_fs.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/contrib_bots/bots/virtual_fs/virtual_fs.py b/contrib_bots/bots/virtual_fs/virtual_fs.py index a96aec4..26a8079 100644 --- a/contrib_bots/bots/virtual_fs/virtual_fs.py +++ b/contrib_bots/bots/virtual_fs/virtual_fs.py @@ -56,21 +56,6 @@ Use commands like `fs help write` for more details on specific commands. ''' -def test(): - fs = fs_new() - user = 'test_user' - fs['user_paths'][user] = '/' - assert is_directory(fs, '/') - - for cmd, expected_response in sample_conversation(): - fs, msg = fs_command(fs, user, cmd) - if msg != expected_response: - raise AssertionError(''' - cmd: %s - expected: %s - but got : %s - ''' % (cmd, expected_response, msg)) - def sample_conversation(): return [ ('cd /', 'Current path: /'), @@ -349,8 +334,3 @@ def is_directory(fs, fn): return fs[fn]['kind'] == 'dir' handler_class = VirtualFsHandler - -if __name__ == '__main__': - # We eventually want to test bots with a "real" testing - # framework. - test()