1
0
mirror of synced 2025-12-23 21:03:15 -05:00

🎉Source Google Search Console: increase unit test coverage at least 90% (#13037)

* Added unitetsts and updated docs

* Fix typo

* Increased to 90
This commit is contained in:
Serhii Lazebnyi
2022-05-23 20:04:43 +03:00
committed by GitHub
parent 34c133ed39
commit 3528985b8c
5 changed files with 168 additions and 52 deletions

View File

@@ -0,0 +1,24 @@
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
from pytest import fixture
@fixture(name="config")
def config_fixture(requests_mock):
url = "https://oauth2.googleapis.com/token"
requests_mock.post(url, json={"access_token": "token", "expires_in": 10})
config = {
"site_urls": ["https://example.com"],
"start_date": "start_date",
"end_date": "end_date",
"authorization": {
"auth_type": "Client",
"client_id": "client_id",
"client_secret": "client_secret",
"refresh_token": "refresh_token"
}
}
return config