Skip to content

Commit

Permalink
Merge pull request #1098 from stevenhua0320/lint-check-20
Browse files Browse the repository at this point in the history
Fix E265, F841 issues for conftest.py, test_schemas.py and test_validate.py
  • Loading branch information
sbillinge authored Jul 9, 2024
2 parents 55c5fa7 + 60f3a03 commit 9af40c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def make_mongodb():
return
try:
exemplars_to_mongo(REGOLITH_MONGODB_NAME)
except:
except ConnectionError:
yield False
return
yield repo
Expand Down Expand Up @@ -273,7 +273,7 @@ def make_mixed_db():
mongo_coll = "assignments"
try:
exemplars_to_mongo(REGOLITH_MONGODB_NAME, collection_list=[mongo_coll])
except:
except ConnectionError:
yield False
return
# Write one collection doc in file system
Expand Down
1 change: 0 additions & 1 deletion tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


def test_update_dict_target():
alloweds = {"TEST": ["string", "float"], "TEST2": "string"}
doc = {
"email": {
"description": "contact email for the author.",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_validate_python_single_col(make_db):
"""
repo = make_db
os.chdir(repo)
#to see what is failing, comment out the rows that capture and restore the
# to see what is failing, comment out the rows that capture and restore the
# sys.stdout.
backup = sys.stdout
sys.stdout = StringIO()
Expand Down

0 comments on commit 9af40c2

Please sign in to comment.