-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from cgat-developers/fix-missing-header
Fix missing header
- Loading branch information
Showing
5 changed files
with
120 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,8 @@ _test_commandline.yaml | |
.mr.developer.cfg | ||
.project | ||
.pydevproject | ||
|
||
|
||
# sample workflow | ||
means.txt | ||
sample* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.6.11" | ||
__version__ = "0.6.12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ ruffus | |
pep8 | ||
yaml | ||
apsw | ||
pyyaml | ||
sqlalchemy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import cgatcore.experiment as E | ||
|
||
|
||
def test_start_and_stop_are_logged_with_optparse(): | ||
statement = ( | ||
f"python -c 'import cgatcore.experiment as E; options, args = E.start(parser=E.OptionParser()); E.stop()'") | ||
|
||
stdout = E.run(statement, return_stdout=True) | ||
assert "job started" in stdout | ||
assert "job finished" in stdout | ||
|
||
|
||
def test_start_and_stop_are_logged_with_argparse(): | ||
statement = ( | ||
f"python -c 'import cgatcore.experiment as E; options, args = E.start(parser=E.ArgumentParser()); E.stop()'") | ||
|
||
stdout = E.run(statement, return_stdout=True) | ||
assert "job started" in stdout | ||
assert "job finished" in stdout |