Merge branch 'gradio-app:master' into master

This commit is contained in:
AK391 2021-11-05 18:12:19 -04:00 committed by GitHub
commit 09e7f264f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

4
codecov.yml Normal file
View File

@ -0,0 +1,4 @@
coverage:
range: 0..100
round: down
precision: 2

View File

@ -566,7 +566,8 @@ class TestTimeseries(unittest.TestCase):
class TestNames(unittest.TestCase):
def test_no_duplicate_uncased_names(self): # this ensures that get_input_instance() works correctly when instantiating from components
# this ensures that `inputs.get_input_instance()` works correctly when instantiating from components
def test_no_duplicate_uncased_names(self):
subclasses = gr.inputs.InputComponent.__subclasses__()
unique_subclasses_uncased = set([s.__name__.lower() for s in subclasses])
self.assertEqual(len(subclasses), len(unique_subclasses_uncased))