- We use built-in unittest (or Django's wrappers) for testing a Python project.
- In some of those tests, we use libs like
freezegunormock, which aren't used anywhere in the production codebase. - Our CI that runs tests installs all deps before a test run, so usually we'd put those in dev-deps.
If I only use a library during test suite runs, should it be in normal or dev packages in my Pipfile?
306 Views Asked by anonymous coward AtIs it common to leave those in the
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in UNIT-TESTING
- How to write tests for classes with inheritance
- PHPunit call magic methods
- Convert IEnumerable to IObservable with variable Period
- How to a run specific code before & after each unit test in Python
- Unit testing a class A that derives from an abstract class B
- Is there another way to unit test business logic in mvc
- Some of my tests show prepended with junit.framework
- Selenium Driver Service not found exception
- Can not convert from Class<PowerMockRunner> to Class<? extends Runner>
- AngularJS Unit Testing - multiple mocks and providers
- How to use Sinon.js FakeXMLHttpRequest with superagent?
- Get Mock with AutoMock.Create<>()
- Mock service that takes unitOfWork in constructor
- Cleanest method for creating a pytest test fixture that takes in dynamic text data
- g++ 5.1.0 not building project, clang shows unknown error
Related Questions in TESTING
- How does Robot's Telnet library work?
- Behat doesn't load extensions?
- Load additional CONFIG file with values
- rails controller test failing non-deterministicly wrt state leak (I think)
- Ordering tests using trial twisted
- Unexcepted failed Gavel/Dredd test
- How to use Jasmine and CucumberJS with Protractor
- Django login tests session problems
- How to mock specific RequireJs dependencies while unit testing
- Test case for WCF REST Service
- how to test this business logic
- Protractor - How to get first or last CHILD value
- Factory Not Registered in rspec but found in console
- Pick out certain lines from files
- Selenium stops running after click() function runs
Related Questions in PIPENV
- Windows reports error when trying to install package using pipenv
- Git - Should Pipfile.lock be committed to version control?
- Pipenv ReadTimeoutError in WSL Environment
- "ModuleNotFoundError: No module named 'yaml'" after pipenv install
- How to fix VersionConflict locking failure in pipenv?
- new created pipenv environment is not empty
- Command "python setup.py egg_info" failed with error code 1 in /tmp/..../
- Python3: list all installed packages and versions in a virtual environment programmatically
- Why is Pipenv not picking up my Pyenv versions?
- Install package with Pipenv
- error when creating a pipenv virtual environment with python 3.7
- Pipenv shell not recognized after installing python and pipenv
- How to launch existing packages after upgrading python3
- Pipenv not activating in correct directory for virtual environment
- How to activate virtual envirooment for existing django project using pipenv in python 3.8
Related Questions in PIPFILE
- Pipenv lock failed when adding numpy
- pipenv: RuntimeError Failed to lock Pipfile.lock
- pipenv stucks while creating a venv
- pipenv install pytorch cpu + specific version
- Installing dependencies of a local dependency with pipenv
- PermissionError: [Errno 13] Permission denied: 'Pipfile' IBM Hyperledger Indy
- Why did my pypi choose a tarball hash yesterday vs now its using a wheel hash?
- requirements.txt vs Pipfile in heroku flask webapp deployment?
- Update installed packages without generating Pipfile.lock
- "docker-compose up" failed to build, The command '/bin/sh -c pipenv install' returned a non-zero code: 1
- CDKTF not recognizing libraries outside of python standard library
- AttributeError: module 'collections' has no attribute 'MutableMapping' (Ubuntu)
- If I only use a library during test suite runs, should it be in normal or dev packages in my Pipfile?
- How to freeze a requirement with pipenv?
- How to specify os-specific wheel files in the Pipfile
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
a small note about
mocksince Python v3.3 it's part of theunittestmodule.Said that, in theory would be better to keep those kind of packages in the dev-dependencies. In practice you could ignore the problem unless you