Skip to content
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

Issue/1479 #1485

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
b4a04ae
Add: Storing input in JSON issue/2
Mar 1, 2023
0ce2676
Add: Calling store_json_template from httpie CLI parser issue/3
Mar 1, 2023
a154b75
Add: Running template functionality issue/4
Mar 1, 2023
d788762
Add: Functionality to modify template issue/5
Mar 1, 2023
16c98cc
Refactor: move load_template to argtemplate
editf Mar 1, 2023
373f6bd
Add test log from running tests on original repo
editf Mar 1, 2023
0ba836e
Fix: Fixed editt command not saving values properly
Mar 1, 2023
839c4e2
Fix: Added check for empty args
Mar 1, 2023
6a5b805
Add unit tests for store_json_template
editf Mar 1, 2023
c74aabb
Add one unit test for editing a template
editf Mar 1, 2023
a489dc2
feat(editt): Add more functionality to editt #8
mrporsev Mar 6, 2023
6e68d60
template(editt): Template changes after running new editt function #8
mrporsev Mar 6, 2023
2e82883
fix(editt): Added the global variable as path #8
mrporsev Mar 6, 2023
40d1fb1
fix(editt): Added ´Item does not exist´ message #8
mrporsev Mar 6, 2023
9b6cd92
Add two more unit tests for store_template
editf Mar 6, 2023
12e2186
Add unit tests for loading a template
editf Mar 6, 2023
c64cab4
Update test_store_template_invalid_method
editf Mar 6, 2023
530caa0
Add more unit tests for edit_template
editf Mar 6, 2023
8d11b51
fix(editt): Fix after receiving feedback #8
mrporsev Mar 7, 2023
1fdcf92
Merge pull request #9 from sanredz/mrporsev/work-on-editt
mrporsev Mar 7, 2023
9528df4
bug(editt): Fix formatting in argtemplate #14
mrporsev Mar 7, 2023
e3b06c2
bug(editt): Fix formatting in core #14
mrporsev Mar 7, 2023
5685144
bug(editt): Fix formatting in test #14
mrporsev Mar 7, 2023
a9df3f2
bug(template): Fix invalid argument error #11
mrporsev Mar 7, 2023
ccf45c9
Merge pull request #16 from sanredz/mrporsev/work-on-editt
mrporsev Mar 7, 2023
324a6d7
Merge pull request #17 from sanredz/mrporsev/work-on-editt
mrporsev Mar 7, 2023
c84c1a4
Merge branch 'issue/1479' into issue-6
editf Mar 7, 2023
cc0182a
Merge pull request #13 from sanredz/issue-6
editf Mar 7, 2023
d9d897e
bug(test): Fix formatting for tests #18
mrporsev Mar 7, 2023
ad76dd8
Merge pull request #19 from sanredz/mrporsev/work-on-editt
mrporsev Mar 7, 2023
e2d836b
bug(template): Fix error if no templates file exists #20
mrporsev Mar 7, 2023
8911d8b
Merge pull request #21 from sanredz/mrporsev/work-on-editt
mrporsev Mar 7, 2023
02e4ab0
Fix: Issue/26
Mar 7, 2023
f9cf256
Revert: undo issue/26
Mar 7, 2023
1c560ba
Fix: Method names can be lower case now
Mar 7, 2023
6a86691
Ft: Input validation
Mar 7, 2023
260916f
Fix error when trying to load nonexistent template
editf Mar 7, 2023
07d55fd
Merge pull request #27 from sanredz/issue-10
editf Mar 7, 2023
a3fd4b5
Update/remove tests
editf Mar 7, 2023
fb167af
Add newline at end of file to pass codestyle check
editf Mar 7, 2023
5fbd3b5
Add tests to increase coverage
editf Mar 7, 2023
6ac3b2d
Merge pull request #29 from sanredz/issue-28
editf Mar 7, 2023
7a9d572
Merge branch 'issue/1479' into issue-30
editf Mar 7, 2023
d1d7e70
Update keys when loading/storing templates
editf Mar 7, 2023
fbc09c2
Merge branch 'issue/1479' into issue-12
editf Mar 7, 2023
84e124c
Ft: Deleting templates functionality issue/23
Mar 7, 2023
0e4aa13
test
Mar 7, 2023
d7971ea
Merge pull request #31 from sanredz/issue-30
sanredz Mar 7, 2023
f88d75e
Merge pull request #32 from sanredz/issue-12
sanredz Mar 7, 2023
9ea5976
Fix error when loading nonexistent template
editf Mar 8, 2023
bc238a2
Add unit tests for delete_template
editf Mar 8, 2023
47cce83
Fix codestyle issues
editf Mar 8, 2023
a1467ef
Add documentation for delete_template
editf Mar 8, 2023
60cdec9
Fix string errors when printing usage instructions
editf Mar 8, 2023
f5b59c3
docs(templates): Add documentation to functions in argtemplates #15
mrporsev Mar 7, 2023
67cfc7e
Merge pull request #25 from sanredz/mrporsev/work-on-editt
mrporsev Mar 8, 2023
ea6aa4e
Merge pull request #33 from sanredz/issue-23
editf Mar 8, 2023
6ead062
Remove checks for extra arguments for runt/delt
editf Mar 8, 2023
7d8645c
Remove unnecessary variable assignment for delt
editf Mar 8, 2023
19eb61a
Add unit tests for running template commands
editf Mar 8, 2023
af82254
Add test log after implementation
editf Mar 8, 2023
e5d2fb6
Add coverage report after implementing features
editf Mar 8, 2023
5db5796
Add original coverage report
editf Mar 8, 2023
4c5ee9b
Merge pull request #35 from sanredz/issue-34
editf Mar 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 126 additions & 0 deletions coverage_after.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
Name Stmts Miss Branch BrPart Cover
---------------------------------------------------------------------------------
httpie/__init__.py 4 0 0 0 100%
httpie/__main__.py 8 0 0 0 100%
httpie/adapters.py 7 0 0 0 100%
httpie/cli/__init__.py 0 0 0 0 100%
httpie/cli/argparser.py 316 20 152 11 92%
httpie/cli/argtemplate.py 99 0 38 0 100%
httpie/cli/argtypes.py 135 7 36 1 95%
httpie/cli/constants.py 46 0 2 0 100%
httpie/cli/definition.py 105 8 14 3 89%
httpie/cli/dicts.py 40 1 16 2 95%
httpie/cli/exceptions.py 2 0 0 0 100%
httpie/cli/nested_json/__init__.py 4 0 0 0 100%
httpie/cli/nested_json/errors.py 14 0 2 0 100%
httpie/cli/nested_json/interpret.py 77 3 40 4 94%
httpie/cli/nested_json/parse.py 107 5 44 4 94%
httpie/cli/nested_json/tokens.py 49 4 12 1 85%
httpie/cli/options.py 124 3 48 1 98%
httpie/cli/requestitems.py 100 8 28 0 92%
httpie/cli/utils.py 41 2 10 0 96%
httpie/client.py 169 0 76 4 98%
httpie/compat.py 51 31 16 3 34%
httpie/config.py 95 2 28 1 98%
httpie/context.py 122 14 38 6 86%
httpie/cookies.py 11 0 2 0 100%
httpie/core.py 202 18 102 15 89%
httpie/downloads.py 175 6 60 9 94%
httpie/encoding.py 18 0 6 1 96%
httpie/internal/__build_channel__.py 1 0 0 0 100%
httpie/internal/__init__.py 0 0 0 0 100%
httpie/internal/daemon_runner.py 28 4 4 0 88%
httpie/internal/daemons.py 58 30 14 3 43%
httpie/internal/update_warnings.py 96 5 42 4 92%
httpie/legacy/__init__.py 0 0 0 0 100%
httpie/legacy/v3_1_0_session_cookie_format.py 33 1 26 2 95%
httpie/legacy/v3_2_0_session_header_format.py 27 1 16 1 95%
httpie/manager/__init__.py 0 0 0 0 100%
httpie/manager/__main__.py 33 5 6 0 87%
httpie/manager/cli.py 39 0 8 0 100%
httpie/manager/compat.py 35 13 10 1 51%
httpie/manager/core.py 20 1 8 1 93%
httpie/manager/tasks/__init__.py 5 0 0 0 100%
httpie/manager/tasks/check_updates.py 8 0 0 0 100%
httpie/manager/tasks/export_args.py 14 1 2 1 88%
httpie/manager/tasks/plugins.py 153 8 64 12 91%
httpie/manager/tasks/sessions.py 43 2 18 2 93%
httpie/models.py 112 5 44 1 96%
httpie/output/__init__.py 0 0 0 0 100%
httpie/output/formatters/__init__.py 0 0 0 0 100%
httpie/output/formatters/colors.py 140 0 30 1 99%
httpie/output/formatters/headers.py 9 0 2 0 100%
httpie/output/formatters/json.py 16 0 3 0 100%
httpie/output/formatters/xml.py 43 1 16 3 93%
httpie/output/lexers/__init__.py 0 0 0 0 100%
httpie/output/lexers/common.py 4 0 2 0 100%
httpie/output/lexers/http.py 22 3 2 1 83%
httpie/output/lexers/json.py 10 0 0 0 100%
httpie/output/lexers/metadata.py 17 3 4 2 76%
httpie/output/models.py 27 1 8 0 97%
httpie/output/processing.py 37 0 22 2 97%
httpie/output/streams.py 138 2 54 1 98%
httpie/output/ui/__init__.py 0 0 0 0 100%
httpie/output/ui/palette.py 72 9 18 3 84%
httpie/output/ui/rich_help.py 104 49 38 0 49%
httpie/output/ui/rich_palette.py 33 3 8 1 90%
httpie/output/ui/rich_progress.py 62 15 14 4 72%
httpie/output/utils.py 20 0 0 0 100%
httpie/output/writer.py 76 13 30 1 79%
httpie/plugins/__init__.py 2 0 0 0 100%
httpie/plugins/base.py 38 4 2 0 90%
httpie/plugins/builtin.py 39 0 2 0 100%
httpie/plugins/manager.py 67 1 22 1 98%
httpie/plugins/registry.py 8 0 0 0 100%
httpie/sessions.py 155 3 64 2 98%
httpie/ssl_.py 37 2 13 0 96%
httpie/status.py 20 0 8 0 100%
httpie/uploads.py 132 19 56 5 83%
httpie/utils.py 131 15 42 3 85%
tests/__init__.py 0 0 0 0 100%
tests/conftest.py 46 11 20 3 79%
tests/fixtures/__init__.py 37 0 4 0 100%
tests/test_argtemplate.py 197 0 28 0 100%
tests/test_auth.py 79 0 20 0 100%
tests/test_auth_plugins.py 76 0 4 1 99%
tests/test_binary.py 32 0 2 0 100%
tests/test_cli.py 200 0 10 0 100%
tests/test_cli_ui.py 20 0 4 0 100%
tests/test_cli_utils.py 42 0 4 0 100%
tests/test_compress.py 60 0 0 0 100%
tests/test_config.py 72 2 10 0 98%
tests/test_cookie.py 26 0 0 0 100%
tests/test_cookie_on_redirects.py 63 0 26 0 100%
tests/test_defaults.py 79 0 0 0 100%
tests/test_downloads.py 129 0 30 0 100%
tests/test_encoding.py 111 0 40 0 100%
tests/test_errors.py 45 0 14 0 100%
tests/test_exit_status.py 42 0 4 0 100%
tests/test_httpie.py 209 4 30 0 98%
tests/test_httpie_cli.py 63 0 28 0 100%
tests/test_json.py 76 0 36 2 98%
tests/test_meta.py 12 0 2 0 100%
tests/test_offline.py 36 0 0 0 100%
tests/test_output.py 249 1 65 1 99%
tests/test_parser_schema.py 11 0 2 0 100%
tests/test_plugins_cli.py 89 0 44 0 100%
tests/test_redirects.py 50 1 16 0 98%
tests/test_regressions.py 18 0 2 0 100%
tests/test_sessions.py 339 1 97 2 99%
tests/test_ssl.py 108 8 40 4 91%
tests/test_stream.py 66 0 20 0 100%
tests/test_tokens.py 63 0 0 0 100%
tests/test_transport_plugin.py 30 0 0 0 100%
tests/test_update_warnings.py 117 1 36 1 99%
tests/test_uploads.py 182 6 40 0 97%
tests/test_windows.py 15 1 4 0 95%
tests/test_xml.py 41 1 22 1 97%
tests/utils/__init__.py 236 18 63 8 90%
tests/utils/http_server.py 101 1 42 2 98%
tests/utils/matching/__init__.py 10 0 2 0 100%
tests/utils/matching/parsing.py 49 1 20 2 96%
tests/utils/matching/test_matching.py 46 0 0 0 100%
tests/utils/matching/tokens.py 17 0 0 0 100%
tests/utils/plugins_cli.py 125 1 50 2 98%
---------------------------------------------------------------------------------
TOTAL 7999 409 2373 153 94%
Loading