Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Update python_engine_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jul 17, 2017
1 parent 6d911a7 commit 4c1996d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/lib/capsulecd/python/python_engine_spec.rb
Expand Up @@ -120,7 +120,9 @@
allow(git_commit_double).to receive(:name).and_return('v1.0.7')

#stub methods in release_step
allow(Open3).to receive(:popen3).with('python setup.py sdist upload',{:chdir=>source_git_local_path}).and_return(true)
allow(Open3).to receive(:popen3).with('python setup.py sdist',{:chdir=>source_git_local_path}).and_return(true)
allow(Open3).to receive(:popen3).with("twine upload --config-file #{File.expand_path('~/.pypirc')} dist/*",{:chdir=>source_git_local_path}).and_return(true)

allow(File).to receive(:open).with(File.expand_path('~/.pypirc'), 'w+').and_return(true)

#stub methods in source_release
Expand Down

0 comments on commit 4c1996d

Please sign in to comment.