Skip to content

Commit

Permalink
Merge branch 'main' into update-version-in-package-json
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3Rabbit authored Nov 4, 2024
2 parents 961090c + 34e2054 commit 6d028e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
10 changes: 4 additions & 6 deletions docs/tests/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ As always, minimum rating are 1.0.
### Prerequirements

* Fork this repository
* As we are using external service ( https://developer.mozilla.org/en-US/docs/Web/CSS/Reference )so the machine running
this test needs to be able to access external service.

### Setup with GitHub Actions

Expand All @@ -43,8 +41,8 @@ Read more on the [general page for github actions](../getting-started-github-act
### Setup Locally

* Follow [general local setup steps for this repository](../getting-started-local.md)
* It is highly recommended to set `cache_when_possible` to `True` and to set `cache_time_delta` to
* It is highly recommended to set `cache_time_delta` to at least 12 hours (Fail to do so may result in banning of service like github).
* It is highly recommended to set [general.cache.use](../settings-json.md) to `true`
* It is highly recommended to set [general.cache.max-age](../settings-json.md) to at least 12 hours (Fail to do so may result in banning of service like github).
* Depending on your preference, follow below NPM package or Docker image steps below.

* Download and install Java (JDK 8 or above)
Expand All @@ -54,7 +52,7 @@ Read more on the [general page for github actions](../getting-started-github-act
* Download and install Node.js (version 20.x)
* Download and install Google Chrome browser
* Install NPM packages ( `npm install --omit=dev` )
* Set `sitespeed_use_docker = False` in your `config.py`
* Set [tests.sitespeed.docker.use](../settings-json.md) to `false` in your `settings.json`

##### Windows Specific

Expand All @@ -63,7 +61,7 @@ Read more on the [general page for github actions](../getting-started-github-act
#### Using Docker image

* Make sure Docker command is globally accessible on your system.
* Set `sitespeed_use_docker = True` in your `config.py`
* Set [tests.sitespeed.docker.use](../settings-json.md) to `true` in your `settings.json`

## FAQ

Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ dnspython==2.7.0
certifi==2024.8.30
selenium==4.26.1
IP2Location==8.10.4
Pillow==10.3.0
OpenCV-Python==4.10.0.82
Numpy==1.26.4
Pillow==11.0.0
OpenCV-Python==4.10.0.84
Numpy==2.1.3
cryptography==43.0.3
pylint==3.3.1
packaging==24.1
3 changes: 1 addition & 2 deletions tests/frontend_quality_yellow_lab_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def run_test(global_translation, url):
rating.overall_review = global_translation('TEXT_SITE_UNAVAILABLE')
return (rating, {'failed': True })

return_dict = {}
yellow_lab = 0

for key in result_dict['scoreProfiles']['generic'].keys():
Expand Down Expand Up @@ -71,7 +70,7 @@ def run_test(global_translation, url):
print(global_translation('TEXT_TEST_END').format(
datetime.now().strftime('%Y-%m-%d %H:%M:%S')))

return (rating, return_dict)
return (rating, result_dict)

def get_ylt_result(url):
"""
Expand Down

0 comments on commit 6d028e0

Please sign in to comment.