Comments (3)
For unit tests, we can make a tests
directory, and setup.py
will know how to run them.
I'm not sure how to test running it as a command. Once we have unit tests, they can handle most of the testing of the internal logic, but I'd still like to have a way to test passing in command-line arguments. We probably need just a couple test cases for it.
One thing I've seen is to have a test script that sets PYTHONPATH to the source directory, and then uses "python -m" to run the module as a command line. I think this might work.
from b2_command_line_tool.
Travis CI already installs the command line tool, so adding it to PYTHONPATH should not be needed in such case.
We should sync all forks before breaking down the file into pieces. I don't have much in the works currently. Do you plan to cut it any time soon? I think it is better if you do it (given the IDEs that we use).
from b2_command_line_tool.
It looks like there's not much happening now. I'll plan on breaking up the code Monday afternoon (Hawaii time), which is very early Tuesday morning UTC.
If that will cause conflicts, let me know.
from b2_command_line_tool.
Related Issues (20)
- Cannot run "help" command when locale is not UTF-8 HOT 2
- B2_DEBUG_HTTP=1 does not seem to have any effect HOT 1
- Feature request: use b2 cli without saving plaintext credentials in `.b2_account_info` HOT 9
- Official Docker Image ? HOT 3
- delete_file_version needs bypassGovernance option HOT 1
- Can't upload FIFOs with upload-file HOT 6
- UnicodeEncodeError: 'ascii' codec can't encode character '\u2022' in position 1325: ordinal not in range(128) HOT 1
- [Question] Explain how sync between buckets work; slow overall speed HOT 8
- b2sdk.exception.InvalidAuthToken: Invalid authorization token. Server said: (bad_auth_token) HOT 2
- Error when resuming upload HOT 2
- switch to stable pypy version after new pypy is released HOT 2
- b2 ls --json destroys output structure with informational message HOT 1
- `Using https://api.backblazeb2.com` output to stderr causing problems for automation that only expects errors and warnings on stderr
- pip install breaks with setuptools 69.0.0 HOT 3
- b2 should respect the spec's default fallback for `XDG_CONFIG_HOME` HOT 4
- Feature request: Support transparent compression HOT 1
- error: the following arguments are required: command HOT 5
- Issue with b2 sync :: KeyError: 'content-length' HOT 11
- Package `b2` for Alpine Linux HOT 5
- Linux.Xor.DDoS false-positive from chkrootkit due PyInstaller use
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 b2_command_line_tool.