Comments (6)
Patches to documentation are cheerfully encouraged!
It seems this wouldn't be limited to django-salesforce, but that doesn't mean we won't see bug reports about it ;-)
from django-salesforce.
One possible solution can be to remove the applications with salesforce models from some tests or test cases by explicitely defining TransactionTestCase.available_apps. Other solution can be to temporary remove salesforce database from DATABASES for some tests or for complete testcases by override_settings. (Not verified for speed but some examples can be found also in Django source if you search for the string @override_settings(INSTALLED_APPS=
.) Both optimizations are possible only with knowledge of what will be tested, therefore it can not be done by django-salesforce.
from django-salesforce.
thanks for the ideas @hynekcer, we ended up removing salesforce from DATABASES entirely for tests and mocking out any calls to the Salesforce API.
from django-salesforce.
I added info about this issue to a new Troubleshooting section of the README.
https://github.com/freelancersunion/django-salesforce/blob/master/README.rst#troubleshooting
from django-salesforce.
thanks @philchristensen !
from django-salesforce.
I fixed it completely by commit 988bd9b in my pull request. There is also explained why is now supports_transactions = True
.
from django-salesforce.
Related Issues (20)
- Related object queries. HOT 3
- Want to add typing information? HOT 3
- introspection and nameField:true HOT 4
- SF picklist fields with lots of choices not being fetched on inspectdb HOT 3
- SOQL for ContentDocument not working HOT 4
- Suppport for Django cache framework with caching in other database HOT 1
- REQUEST_LIMIT_EXCEEDED due to N+1 query HOT 2
- Omitting unspecified fields from creation HOT 2
- Cannot get object using custom id HOT 1
- Compatibility with Django 4.2 HOT 5
- Django-salesforce is not compatible with the new django-debug-toolbar 4.1 HOT 1
- inspectdb doesn't create custom objects tables. HOT 2
- Document the need to enable Username-Password flow HOT 3
- QuerySet.update -> EXCEEDED_ID_LIMIT HOT 1
- no attribute 'XJSONField' HOT 1
- Version 5.0 for Django 5.0 HOT 2
- Sponsorship license key HOT 3
- More information in one place about license key HOT 1
- Cannot configure SF_PK HOT 1
- django-salesforce-agpl HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-salesforce.