summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* tests/utils.py: added new function rm_nodedirs.Siddharth Ravikumar2015-02-131-1/+12
| | | | | rm_nodedirs purges the node directories. This function will be used later to remove the test node directories.
* tests/crypto_test.py & tests/file_test.py - corrected typos in doctstrings.Siddharth Ravikumar2015-02-132-2/+2
|
* tests/config_test.py: config.yaml file is purged after all the tests.Siddharth Ravikumar2015-02-131-5/+3
|
* removed tests/test-config/config.yaml - no longer needed.Siddharth Ravikumar2015-02-131-13/+0
|
* tests/silo_test.py: re-wrote it.Siddharth Ravikumar2015-02-131-45/+58
| | | | Now the test is in a Test class with proper setup and teardown methods.
* tests/events_test.py: now teardown purges the shards of TEST_FILESiddharth Ravikumar2015-02-131-0/+2
|
* tests/events_test.py: corrected typo in docstring.Siddharth Ravikumar2015-02-131-1/+1
|
* tests/events_test.py: re-wrote itSiddharth Ravikumar2015-02-121-237/+187
| | | | | | | - Now the test is in a Test class with proper setup and teardown methods. - Utility functions were removed; these utility function were added to tests/utils.py module (see previous commit).
* tests/utils.py: copied the utility functions in tests/events_test.py to this ↵Siddharth Ravikumar2015-02-121-2/+81
| | | | | | module. These utility functions will be deleted from tests/events_test.py
* tests/crypto_test.py: re-wrote it.Siddharth Ravikumar2015-02-121-56/+68
| | | | Now the test is in a Test class with proper setup and teardown methods.
* tests/file_test.py: re-wrote it.Siddharth Ravikumar2015-02-111-48/+54
| | | | Now the test is in a Test class with proper setup and teardown methods.
* tests/utils.py: removed extraneous import thingies.Siddharth Ravikumar2015-02-091-1/+1
|
* tests/config_test.py: re-wrote it.Siddharth Ravikumar2015-02-091-24/+27
| | | | | | | Now the test is in a Test class with proper setup and teardown methods. The teardown method has been purposely not fleshed out. It will be fleshed out after all the test modules have been re-written.
* tests/utils.py: contains utility functions, etc that will be used in test ↵Siddharth Ravikumar2015-02-091-0/+57
| | | | modules.
* tests/events_test.py: wrote test for 'file modification' under test_housekeep()Siddharth Ravikumar2015-01-281-0/+28
| | | | This, I guess, completes the tests for the new housekeep method in the ComboxDirMonitor class.
* combox/events.py - Wrote first version of housingkeep() method for ↵Siddharth Ravikumar2015-01-271-1/+23
| | | | | | | ComboxDirMonitor class. The test for this method at tests/events_test.py only tests a part of it.
* tests/events_test.py: renamed test_CEH() -> test_CDM()Siddharth Ravikumar2015-01-271-1/+1
|
* combox/events.py: now when files are -- created, moved, removed, modified -- ↵Siddharth Ravikumar2015-01-211-5/+27
| | | | | | | their info is kept track in simple db file (using PickleDB). also updated tests/events_test.py to test if the newly added code to that updates the db works properly.
* tests/events_test.py: re-arranged the import statements.Siddharth Ravikumar2015-01-211-3/+5
|
* new module: combox/silo.pySiddharth Ravikumar2015-01-211-0/+87
| | | | | | | - Contains the ComboxSilo class which provides an interface to access the db that stores information about files in the combox directory. Tests for this module is at tests/silo_test.py
* combox/file.py: defined hash_file function.Siddharth Ravikumar2015-01-211-1/+13
| | | | | | hash_file function returns the SHA512 hash of the file's content. The test for the hash_file function is at tests/file_test.py
* Renamed ComboxEventHandler (class) -> ComboxDirMonitorSiddharth Ravikumar2015-01-211-4/+4
| | | | | modified: combox/events.py modified: tests/events_test.py
* combox config now contains a `combox_name` field which contains the name of ↵Siddharth Ravikumar2015-01-212-1/+2
| | | | | | | | the combox. modified: combox/config.py modified: tests/config_test.py modified: tests/test-config/config.yaml
* now the config file also makes note of the 'silo' directory.Siddharth Ravikumar2015-01-212-1/+2
| | | | | | | | | silo directory is the location where the silo (silo.db) containing information about files in the combox directory is stored. modified: combox/config.py modified: tests/config_test.py modified: tests/test-config/config.yaml
* fleshed out the on_modified function in the ComboxEventHandler class + wrote ↵Siddharth Ravikumar2015-01-203-1/+90
| | | | | | | | | tests for it. modified: combox/events.py modified: tests/events_test.py new file: tests/files/ipsum.txt new file: tests/files/lorem.txt
* tests/events_test.py: fixed the path_deletedp function.Siddharth Ravikumar2015-01-201-5/+4
|
* updated copright year.Siddharth Ravikumar2015-01-204-4/+4
| | | | | | | | | | | | modified: combox/cbox.py modified: combox/config.py modified: combox/crypto.py modified: combox/events.py modified: combox/file.py modified: tests/config_test.py modified: tests/crypto_test.py modified: tests/events_test.py modified: tests/file_test.py
* tests/events_test.py: wrote test for file/directory rename under combox ↵Siddharth Ravikumar2015-01-161-0/+37
| | | | directory.
* tests/events_test.py: wrote test for file/directory deletion in combox ↵Siddharth Ravikumar2015-01-151-4/+35
| | | | directory.
* tests/events_test.py: wrote code to test whether files created in a nested ↵Siddharth Ravikumar2015-01-151-5/+17
| | | | directory properly are split properly to node dirs.
* added tests/events_test.py: tests the ComboxEventHandler thing.Siddharth Ravikumar2015-01-141-0/+103
|
* updated tests/test-config/config.yamlSiddharth Ravikumar2015-01-141-3/+3
|
* tests/crypto_test.py: added new test function to test split_and_encrypt and ↵Siddharth Ravikumar2015-01-131-0/+21
| | | | decrypt_and_glue functions.
* tests/crypto_test.py: uses new test file.Siddharth Ravikumar2015-01-132-1/+1
|
* tests/crypto_test.py: uses get_nodedirs function to fetch list of node ↵Siddharth Ravikumar2015-01-131-3/+5
| | | | directories.
* tests/file_test.py: uses get_nodedirs function to fetch list of node ↵Siddharth Ravikumar2015-01-131-1/+2
| | | | directories.
* tests/config_test.py: modified test config info.Siddharth Ravikumar2015-01-131-8/+8
|
* updated tests/test-config/config.yamlSiddharth Ravikumar2015-01-131-4/+4
|
* updated tests/crypto_test.py: password read from config file.Siddharth Ravikumar2015-01-131-9/+6
|
* rewrote the read_shards() and write_shards() function in combox/file.py.Siddharth Ravikumar2015-01-132-22/+43
| | | | | | | | | Tests were accordingly modded and now use the test config.yaml to split and write shards to dirs. modified: combox/file.py modified: tests/crypto_test.py modified: tests/file_test.py
* added new directories and test combox config under tests/Siddharth Ravikumar2015-01-133-0/+11
| | | | | | | | These *will* be used in the tests. new file: tests/shard-dir-0/.foo new file: tests/shard-dir-1/.foo new file: tests/test-config/config.yaml
* Added `nose' for combox/config.py, combox/crypto.py, combox/file.pySiddharth Ravikumar2015-01-123-0/+209
| | | | | | new file: tests/config_test.py new file: tests/crypto_test.py new file: tests/file_test.py
* deleted old test files in tests/Siddharth Ravikumar2015-01-124-151/+0
| | | | | | | deleted: tests/combox_tests.py deleted: tests/test_config.py deleted: tests/test_crypto.py deleted: tests/test_file.py
* Added back ol' test files.Siddharth Ravikumar2015-01-124-0/+121
| | | | | | | new file: tests/files/the-red-star.jpg new file: tests/test_config.py new file: tests/test_crypto.py new file: tests/test_file.py
* consolidated everything into combox/combox.py.Siddharth Ravikumar2015-01-124-102/+11
| | | | | | | | | | | | tests were removed. will write tests using `nose` later. renamed: combox/file.py -> combox/combox.py deleted: combox/config.py deleted: combox/crypto.py renamed: tests/test_config.py -> tests/combox_tests.py deleted: tests/files/the-red-star.jpg deleted: tests/test_crypto.py deleted: tests/test_file.py
* moved combox/tests -> tests/Siddharth Ravikumar2015-01-125-0/+121
renamed: combox/tests/__init__.py -> tests/__init__.py renamed: combox/tests/files/the-red-star.jpg -> tests/files/the-red-star.jpg renamed: combox/tests/test_config.py -> tests/test_config.py renamed: combox/tests/test_crypto.py -> tests/test_crypto.py renamed: combox/tests/test_file.py -> tests/test_file.py