Skip to main content

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!')


child_ws = ws.child_workspace('new_workspace')
...

See full api of noseapp_workspace.WorkSpace

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noseapp_workspace-0.2.2.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file noseapp_workspace-0.2.2.tar.gz.

File metadata

File hashes

Hashes for noseapp_workspace-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2bb2fe192e8be0c259a290df1a2703a0698ce619a212389487fa3a9592175234
MD5 0e1cf80955a0c128835d8a0c2864db01
BLAKE2b-256 95de4cfc19a8a08a820abb840afe42865ea2f22e848d61805ffa6e50a6c6ff5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page