Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--keepdb is not working #373

Open
Vido opened this issue Nov 7, 2019 · 0 comments
Open

--keepdb is not working #373

Vido opened this issue Nov 7, 2019 · 0 comments

Comments

@Vido
Copy link

Vido commented Nov 7, 2019

For some reason manage.py jenkins ignores the --keepdb option. It deletes my database...

This is the command i'm running:
portal and solr_front are apps inside my project.

# Run tests with coverage
python manage.py jenkins portal solr_front --keepdb --enable-coverage

When I run the manage.py test, it keeps my database as expected.

# This keeps my DB
python manage.py test portal solr_front --keepdb

This is how my DATABASES is configured

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.mysql',
            'NAME': 'dev',
            'TEST_NAME': 'dev',
            'USER': 'user',
            'PASSWORD': '***********',
            'HOST': '192.168.0.8',
            'PORT': '',
        }
    }

It's is the versions i'm running

Python 2.7.15
Django==1.8.11
django-jenkins==0.110.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant