gradio/test
Pradyumna Rahul c4eeac0ca4 Adds clauses for specific exceptions in version check (#261)
When any exceptions occurs in the "try" block of the code, it would
handle it the same way regardless.
In the `version_check`, there are 4 possibilities for an error to
occur. These are as follows:
1) Gradio package is installed improperly due to which the version information is inaccessible.
2) JSON cannot be parsed from the Package version URL.
3) JSON that is parsed from the URL does not contain version information.
4) The Package URL is not accessible.

Refactored method to handle these cases and provide appropriate messages.

Co-authored-by: Pradyumna Rahul <pradyumnar@Pradyumnas-MacBook-Pro.local>
2021-09-02 14:01:51 -07:00
..
golden fix tests 2021-09-01 22:26:00 +00:00
images End-to-end UI tests with Selenium (#72) 2020-10-23 18:28:30 +04:00
tmp End-to-end UI tests with Selenium (#72) 2020-10-23 18:28:30 +04:00
__init__.py deteled some unnecessary files 2019-02-27 16:59:12 -08:00
test_demos.py fix tests 2021-09-01 22:21:32 +00:00
test_inputs.py hugging face interfaces + unittests 2021-05-20 14:43:26 -04:00
test_interfaces.py add testing and flask changes 2020-09-21 11:51:39 -07:00
test_interpretation.py fixed failing tests 2021-04-29 23:41:51 -04:00
test_mix.py unittests for mix 2021-05-20 15:16:16 -04:00
test_outputs.py fix failing tests 2020-12-21 07:55:52 -08:00
test_utils.py Adds clauses for specific exceptions in version check (#261) 2021-09-02 14:01:51 -07:00