-
Notifications
You must be signed in to change notification settings - Fork 8
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 #37 from sbillinge/test-utils
Python file for running diffpy.utils tests. Closes #35
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env python3 | ||
import pexpect | ||
|
||
# This assumes you are running this from a directory called scratch/diffpy.utils | ||
# where scratch is at the same level as dev in your tree. | ||
p = pexpect.spawn("cookiecutter ../../dev/cookiecutter") | ||
|
||
p.expect("full_name .*") | ||
p.sendline("diffpy") | ||
|
||
p.expect("email .*") | ||
p.sendline("sb2896@columbia.edu") | ||
|
||
p.expect("github_username .*") | ||
p.sendline("sbillinge") | ||
|
||
p.expect("project_name .*") | ||
p.sendline("diffpy.utils") | ||
|
||
p.expect("package_dist_name .*") | ||
p.sendline("") | ||
|
||
p.expect("package_dir_name .*") | ||
p.sendline("") | ||
|
||
p.expect("repo_name .*") | ||
p.sendline("") | ||
|
||
p.expect("project_short_description .*") | ||
p.sendline("") | ||
|
||
p.expect("Select minimum_supported_python_version.*") | ||
p.sendline("3") | ||
|
||
# Runs until the cookiecutter is done; then exits. | ||
p.interact() |