Comments (5)
appdirs uses an old home-grown test library -- written by @trentm i believe before the modern python testing tools came into existence -- to run its tests. if anyone wants to port the tests to nose, feel free to do it.
from appdirs.
I would just say ... don’t port to nose, use stdlib and unittest, it is good enough these days.
from appdirs.
I would recommend py.test as a test framework.
It requires a lot less boiler plate code than unittest or other frameworks. It can transparently integrate code coverage and doctest tests.
from appdirs.
- “a lot less boiler plate” … what are you talking about? Show me, what’s wrong with my pull request.
- I start to thinking about non-standard libraries in the moment (and not sooner) the standard ones are too cumbersome to use. Tell me, what of the 10 (in words: ten) trivial test cases is too complicated for unittest?
- Also, standard objections to using non-standard libraries … who will maintain compatibility with older/more recent versions of the standard Python?
from appdirs.
@mcepl: I think you might have taken my suggestion the wrong way. I wasn't making any statement regarding the quality of your code, I was pointing out that, generally, py.test requires a lot less boilerplate code and has some other advantages that could be useful for appdirs.
Regarding your concern about backward compatibility, py.test is quite well maintained and has as an explicit goal to be compatible with all versions of python that make sense without requiring the user to account for them.
I, by no means, wanted to critique your work or something of that sort, but I was simply trying to give some input, in the hope it would be helpful.
If the maintainers of appdirs conclude any of our ideas and code are of any value, they will probably integrate them.
BTW, I made myself some changes which relate to XDG compliance and was wondering how difficult would it be to test the actual behaviour for all supported platforms on any arbitrary platform?
I suppose that must involve some mock objects to correctly give appdirs the right environment to assume native execution, is that feasible in the current implementation ?
from appdirs.
Related Issues (20)
- Documentation examples for `user_config_dir` HOT 3
- Calls to appdirs functions fail on Jython in Windows if Java doesn't have JNA
- user_runtime_dir HOT 1
- user_config_dir vs Python from MS Store? HOT 1
- Getting write permission to site directories? HOT 4
- Breaking (and breaking pip) in MinGW Python running on Windows Server 2008 HOT 2
- Provide provide possibility to overwrite "user cache" location with env variable on linux HOT 3
- Startup path is not there
- App name is duplicated on Windows if author name is missing or None HOT 6
- pywintypes.com_error: "Can't find the specified path" on Windows
- Behavior inside a Flatpak sandbox?
- Add a note directing users to platformdirs HOT 3
- Does it support Android? HOT 1
- fix one-sentence summary in docstring for `site_config_dir`
- License parsing HOT 1
- feature: Support "well known" user directories HOT 1
- Branch names release vs. master
- macOS `user_config_dir` goes against OS guidelines
- Deprecate notice
- N
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 appdirs.