Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

Commit 81e63fc

Browse files
author
Sean Budd
committed
update tests for module style usage
1 parent 9d447da commit 81e63fc

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A utility that persists state of a data pipeline execution and uses them to dete
77
## Usage
88

99
```
10-
$ python mcd.py [options] {db-connection-string} <command> [command-parameters]
10+
$ python -m mcd [options] {db-connection-string} <command> [command-parameters]
1111
```
1212

1313
- `options` include:
@@ -34,8 +34,8 @@ $ python mcd.py [options] {db-connection-string} <command> [command-parameters]
3434
To get help, use:
3535

3636
```
37-
$ python mcd.py --help
38-
$ python mcd.py <command> --help
37+
$ python -m mcd --help
38+
$ python -m mcd <command> --help
3939
```
4040

4141
### Usage Example
@@ -44,18 +44,18 @@ $ python mcd.py <command> --help
4444
$ pipenv install
4545
$ pipenv shell
4646
47-
$ python mcd.py postgresql+psycopg2://user:password@host:port/dbname init-execution
47+
$ python -m mcd postgresql+psycopg2://user:password@host:port/dbname init-execution
4848
49-
$ python mcd.py postgresql+psycopg2://user:password@host:port/dbname get-last-successful-execution
50-
$ python mcd.py postgresql+psycopg2://user:password@host:port/dbname get-execution-last-updated-timestamp id-as-returned-by-get-last-successful-execution-command
49+
$ python -m mcd postgresql+psycopg2://user:password@host:port/dbname get-last-successful-execution
50+
$ python -m mcd postgresql+psycopg2://user:password@host:port/dbname get-execution-last-updated-timestamp id-as-returned-by-get-last-successful-execution-command
5151
52-
$ python mcd.py postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command load ./relative/path/to/load/models **/*.json
53-
$ python mcd.py postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command load
52+
$ python -m mcd postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command load ./relative/path/to/load/models **/*.json
53+
$ python -m mcd postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command load
5454
55-
$ python mcd.py postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command transform C:/absolute/path/to/transform/models group1/*.csv ./group2/**/*.sql
56-
$ python mcd.py postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command transform
55+
$ python -m mcd postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command transform C:/absolute/path/to/transform/models group1/*.csv ./group2/**/*.sql
56+
$ python -m mcd postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command transform
5757
58-
$ python mcd.py postgresql+psycopg2://user:password@host:port/dbname complete-execution id-as-retured-by-init-command
58+
$ python -m mcd postgresql+psycopg2://user:password@host:port/dbname complete-execution id-as-retured-by-init-command
5959
```
6060

6161
## Prerequisites

tests/integration/test_integration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66
# Bootstrap
77
## Aliases
88
loadModelDirectory="./tests/integration/models/load"
9-
mcd="pipenv run python mcd.py postgresql+psycopg2://postgres:travisci@localhost:5432/postgres"
9+
mcd="pipenv run python -m mcd postgresql+psycopg2://postgres:travisci@localhost:5432/postgres"
1010

1111
InitExecution () {
1212
executionId=$($mcd init-execution)

0 commit comments

Comments
 (0)