-
Notifications
You must be signed in to change notification settings - Fork 115
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
Ability to run flexibly run tests on different database drivers/backends #10
Comments
Hi @davidjb, I think the case is strong to reinstate this. We'll review internally and confirm back - thanks |
|
@XF-FW This issue is that If you compare the current version to the ESSSolutions version, you'll see what I mean - the current version has all of its settings hardcoded so if someone wanted to change the |
Ah, yeah, that makes sense. Ignore my comment then. Sorry about that. |
No worries @XF-FW! It's good to know it's got support for SQL Server now, so perhaps just using |
The original version of django-mssql-backend utilised
dj_database_url
in order to provide a flexible way of specifying the database configuration when running tests, by way of environment variables (https://github.com/ESSolutions/django-mssql-backend/blob/master/testapp/settings.py#L1-L6). With this fork, that flexibility has been replaced with hard-coded settings in https://github.com/microsoft/mssql-django/blob/dev/testapp/settings.py, forcing one to edit that file to change the user/password/host/port/driver settings.As a Mac/Linux user I'm using Docker and FreeTDS as the simplest/most convenient way in which to run up and connect to a test SQL Server on my OS (I recall there being issues installing the Microsoft ODBC driver) and do so on a custom port in order to be able to run tests for this project. The original setup in
django-mssql-backend
means that this was possible:whereas now in order to submit and test #9 I had to manually edit
settings.py
and be careful not to commit that change.Is this or some level of flexibility for test execution able to be reinstated?
The text was updated successfully, but these errors were encountered: