Commit Graph

75 Commits

Author SHA1 Message Date
Ali Abid
9aba5eb148 Support video example preview 2021-10-05 19:24:14 +00:00
Abubakar Abid
9ed2f1fe29 fixed warnings & unittests 2021-09-14 10:28:55 -05:00
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
Ali Abid
b9310739d9 fix tests 2021-09-01 22:26:00 +00:00
Ali Abid
a2e809c4af fix tests 2021-09-01 22:21:32 +00:00
Ali Abid
e52fc1d58f fix tests 2021-08-30 19:27:36 +00:00
root
40f9ed7a8a updated PyPi version 2021-08-05 18:56:23 +00:00
Ubuntu
3d8f0ca9e6 add tests for built tag 2021-08-04 01:20:59 +00:00
Ali Abdalla
e4137a947b fixed selenium tests (#245)
* increasing time sleep to 5

* reduced gap, fixed golden
2021-07-14 16:31:16 -05:00
aliabd
44f506c5a6 added wait for color issue 2021-06-29 10:36:10 -07:00
Ali Abid
26ba1634ac fix failing tests 2021-06-15 11:07:44 -07:00
Ali Abid
53a5c1cc84 fix failing tests 2021-06-15 10:59:49 -07:00
Ali Abid
704c0a0bcd use cdn static files for unit tests 2021-06-15 10:43:57 -07:00
aliabd
2ee585be2f replaced golden images 2021-05-24 17:12:44 -04:00
Ali Abid
74e8bcb3c4 test fies 2021-05-24 14:07:04 -07:00
Ali Abid
b78ab63a0b updated test 2021-05-24 13:50:21 -07:00
Ali Abid
7f135f9d74 merge master 2021-05-24 10:48:01 -07:00
dawoodkhan82
bd0a2e2a81 unittests for mix 2021-05-20 15:16:16 -04:00
dawoodkhan82
a1053e9a9f hugging face interfaces + unittests 2021-05-20 14:43:26 -04:00
Abubakar Abid
a5912b55c3 fixed failing tests 2021-04-29 23:41:51 -04:00
Ali Abid
c48abe3161 fix tests for multiple file input 2021-04-26 08:19:24 -07:00
aliabd
8910a18c63 fixing golden images 2021-04-19 23:03:33 +04:00
aliabd
9e5a544c7b fixing selenium screenshots 2021-03-11 23:32:38 -05:00
Ali Abid
432174ef11 move 2021-03-09 09:25:21 -08:00
aliabd
7657800b58 fixed selenium tests 2021-02-25 12:23:58 -08:00
Ali Abid
bd28056fed fix tests 2020-12-21 09:55:02 -08:00
Ali Abid
cd09471b77 fix failing tests 2020-12-21 07:55:52 -08:00
aliabd
888030f041 updated golden screenshots 2020-11-24 01:10:33 +04:00
aliabd
e2a04a34d7 changed io to iface 2020-11-24 01:06:37 +04:00
aliabd
41251f858b Merge branch 'master' of github.com:gradio-app/gradio
t push# Please enter a commit message to explain why this merge is necessary,
2020-11-04 23:14:26 +04:00
aliabd
b5d49088a1 changed golden to reflect new buttons 2020-11-04 23:14:21 +04:00
Ali Abid
fdfa94b9e7 fix failing tests 2020-11-04 08:57:09 -08:00
aliabd
780091979e changed golden images for test demos 2020-11-04 20:07:46 +04:00
aliabd
f122bf24bd fixed image_mod test to match demo 2020-11-04 19:54:55 +04:00
Ali Abid
6eb945f639 support examples for all types; fix failing tests 2020-10-28 11:39:28 -07:00
Ali Abdalla
d4d768e9be End-to-end UI tests with Selenium (#72)
* selenium test file

* selenium test

* added save_to as interface attribute, 4 demo tests with selenium

* change name to test_demos

* fixed wait until, removed path insertion

* added selenium to circleci config

* trying chrome driver image

* removing cache from circlci

* using chromedriver_installer

* adding deps for chromedriver

* sudo

* removed chromedriver

* added chromium-chromedriver

* using chromedriver-py

* using service instead of exec path

* using latest selenium

* using browsers image

* added cwd to tmp and test paths

* saving artifacts

* added tmp.txt

* changed driver size

* elem.text sleep

* driver size fix

* saving artifacts

* saving artifacts correctly

* saving artifacts correctly

* saving artifactS

* print statement

* print statement

* print statement

* correct dir

* debugging

* debugging

* debugging

* fixing wonderful

* running comparison

* current dir fix

* changing longest_word

* fixed longest_word

* clean up

* fixing new output label name

* time limit on while loops

* refactoring common code

* removed setUp

* removed server_port declaration from demos

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2020-10-23 18:28:30 +04:00
Ali Abid
0773097c4c interpretation plus documentation 2020-10-22 05:09:17 -07:00
Abubakar Abid
b3106cb6af added test for interpretation 2020-10-05 07:43:42 -05:00
Ali Abid
14ba503b77 add testing and flask changes 2020-09-21 11:51:39 -07:00
Ali Abid
799970018a mid progress 2020-09-17 14:38:22 -07:00
Ali Abid
10c8cf60bf in progress 2020-09-15 05:16:14 -07:00
dawoodkhan82
f626f79b21 merge 2020-08-11 11:44:33 -04:00
Ali Abid
3f95aaeb29 tests 2020-08-10 13:52:43 -07:00
dawoodkhan82
651f5dfb0b disable analytics on tests 2020-08-10 12:27:29 -04:00
Ali Abid
f4cc598c6e big changes 2020-08-05 10:42:52 -07:00
Abubakar Abid
924cb0e1be fixed broken tests 2020-07-08 17:02:17 -05:00
Abubakar Abid
a1a2096a74 added detailed explanations of what each output expects along with relevant tests 2020-07-07 00:51:07 -05:00
dawoodkhan82
3fe9f0ae1c test fixes 2020-07-01 20:34:51 -04:00
Abubakar Abid
773c30ca2d fixed networking issue 2020-07-01 11:51:36 -05:00
dawoodkhan82
6376de175d test fixes 2020-06-30 19:11:35 -04:00