Skip to content

Commit

Permalink
Merge pull request #37 from sbillinge/test-utils
Browse files Browse the repository at this point in the history
Python file for running diffpy.utils tests.  Closes #35
  • Loading branch information
sbillinge authored Jun 19, 2024
2 parents 9086b92 + 1213ff4 commit cafe504
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions test_utils.py
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()

0 comments on commit cafe504

Please sign in to comment.