ehmatthes / django-simple-deploy

A reusable Django app that configures your project for deployment
BSD 3-Clause "New" or "Revised" License
307 stars 26 forks source link

FAILED when running heroku poetry unittest #223

Closed darjeeling closed 1 year ago

darjeeling commented 1 year ago

problem on running pytest platforms/heroku

FAILED platforms/heroku/test_heroku_config.py::test_settings[poetry] - AssertionError 

I looked at the error and find out there is problem in copying files on my environment.

I'm using pyenv with virtualenv

errors maybe occurred on shell script utils/setup_project.sh

looks like

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pyenv: cannot change working directory to `/private/var/folders/98/n2p054fd2ms1rd1f569p5rw40000gn/T/pytest-of-dj/pytest-13/blog_project0/blog'
darjeeling commented 1 year ago

I tested with changing params

@pytest.fixture(scope='module', params=["req_txt", "poetry", "pipenv"])

only poetry failed

ehmatthes commented 1 year ago

You are using macOS, right?

darjeeling commented 1 year ago

@ehmatthes yes. latest version. M1

darjeeling commented 1 year ago

@ehmatthes how about convert shell script to python utils?

ehmatthes commented 1 year ago

I'm going to comment about this topic on #230.

ehmatthes commented 1 year ago

After getting rid of all shell scripts in the unit tests (#236), I'm going to close this issue. If you still have an issue running unit tests, please open a new issue. Thanks!