Skip to content

Unit tests for "datasette publish" #348

@simonw

Description

@simonw

The datasette publish family of commands all work by shelling out to heroku/now/docker

from subprocess import call, check_output

So in tests I should be able to mock those calls:

@mock.patch('subprocess.call')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions