workspace extension for noseapp lib
Project description
pip install noseapp_workspace
Usage
Extension for control by file system from your test application.
Example:
ws = WorkSpace( '/path/to/entry/point/', permissions=( Permissions.CREATE_FILE, Permissions.CREATE_DIRECTORY, ), ) bin = ws.go_to('bin') daemon_bin = bin.path_to_bin('daemon') logs = ws.go_to('logs') logs.is_file('daemon.log') logs.create_file('new.log') or logs.create_log_file('new') tmp = ws.create_dir('tmp') ws.is_dir('tmp') tmp.create_file('new_tmp.tmp', content='Hello World!')
Must be installed like extension:
WORKSPACE_EX = create_workspace_config( '/path/to/entry/point/', permissions=( Permissions.CREATE_FILE, Permissions.CREATE_DIRECTORY, ), ) WorkSpace.install(app) suite = Suite(__name__, require=['workspace'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file noseapp_workspace-0.1.1.tar.gz
.
File metadata
- Download URL: noseapp_workspace-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cd99272e15dddc135de6f8136f6e13e7f0a73aac790adf639be4df369340de5 |
|
MD5 | 453009ab0f761d83bff39f82ca51308d |
|
BLAKE2b-256 | de84c459b1d8c2f5b8ebbe0a716b010d136a65da4dc40d3c1fbf103866d8fc17 |