Repository: rm-hull/luma.core (language: python)

Issue:
add test for SPI cs_high warning
```python
304            if spi_mode: 
305                self._spi.mode = spi_mode 
306            if "cs_high" in kwargs: 
307                import warnings 
308                warnings.warn( 
309                    "SPI cs_high is no longer supported in kernel 5.4.51 and beyond, so setting parameter cs_high is now ignored!", 
310                    RuntimeWarning 
311                ) 
```


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4d1b4f7f..634fb5f2 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -40,15 +40,15 @@ jobs:
         env:
           TOX_ENV: qa,doc
         run: python -m tox -e $TOX_ENV
-      - name: Upload Coverage
-        run: coveralls
+      - name: Coveralls
+        run: coveralls --service=github
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
           COVERALLS_PARALLEL: true
 
   coveralls:
-    name: Finish Coveralls
+    name: Coveralls
     needs: build
     runs-on: ubuntu-latest
     container: python:3-slim
diff --git a/LICENSE.rst b/LICENSE.rst
index 1a390227..84efba75 100644
--- a/LICENSE.rst
+++ b/LICENSE.rst
@@ -1,7 +1,7 @@
 The MIT License (MIT)
 ---------------------
 
-Copyright (c) 2017-2020 Richard Hull and contributors
+Copyright (c) 2017-2021 Richard Hull and contributors
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff --git a/doc/conf.py b/doc/conf.py
index f367d1f9..0cb54ba3 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -97,7 +97,7 @@
 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
 
 # ignore known broken links
-linkcheck_ignore = [r'http://gnu.ethz.ch/']
+linkcheck_ignore = [r'http://gnu.ethz.ch/', r'http://www.avrfreaks.net/']
 
 # The reST default role (used for this markup: `text`) to use for all
 # documents.
@@ -150,7 +150,7 @@
 # The name for this set of Sphinx documents.
 # "<project> v<release> documentation" by default.
 #
-# html_title = 'luma.oled'
+# html_title = 'luma.core'
 
 # A shorter title for the navigation bar.  Default is the same as html_title.
 #
diff --git a/luma/core/interface/serial.py b/luma/core/interface/serial.py
index 089f234f..09ce200a 100644
--- a/luma/core/interface/serial.py
+++ b/luma/core/interface/serial.py
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (c) 2017-2020 Richard Hull and contributors
+# Copyright (c) 2017-2021 Richard Hull and contributors
 # See LICENSE.rst for details.
 
 """
diff --git a/luma/core/legacy/font.py b/luma/core/legacy/font.py
index 242b7e84..af08f868 100644
--- a/luma/core/legacy/font.py
+++ b/luma/core/legacy/font.py
@@ -14,7 +14,7 @@
 | ``CP437_FONT``    | See https://en.wikipedia.org/wiki/Code_page_437 | *unascribed*                                                                                   |
 |                   | for further details.                            |                                                                                                |
 +-------------------+-------------------------------------------------+------------------------------------------------------------------------------------------------+
-| ``LCD_FONT``      | Only contains characters 0x20-0x7F inclusive    | https://www.avrfreaks.net/forum/code-57-512-and-712-fonts?name=PNphpBB2&file=viewtopic&t=69880 |
+| ``LCD_FONT``      | Only contains characters 0x20-0x7F inclusive    | http://www.avrfreaks.net/forum/code-57-512-and-712-fonts?name=PNphpBB2&file=viewtopic&t=69880  |
 |                   | and Cyrillic chars 0x80-0xBF (except 'Ёё');     |                                                                                                |
 |                   | all others will appear as blanks.               |                                                                                                |
 +-------------------+-------------------------------------------------+------------------------------------------------------------------------------------------------+


Test patch:
diff --git a/tests/test_spi.py b/tests/test_spi.py
index c5c87aa4..06ead819 100644
--- a/tests/test_spi.py
+++ b/tests/test_spi.py
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-# Copyright (c) 2017-18 Richard Hull and contributors
+# Copyright (c) 2017-2021 Richard Hull and contributors
 # See LICENSE.rst for details.
 
 """
@@ -101,3 +101,12 @@ def test_unsupported_gpio_platform():
         assert str(ex) == 'GPIO access not available'
     except ImportError:
         pytest.skip(rpi_gpio_missing)
+
+
+def test_cs_high_ignored():
+    with pytest.warns(RuntimeWarning) as record:
+        spi(gpio=gpio, spi=spidev, port=9, device=1, cs_high=True)
+
+    assert len(record) == 1
+    assert record[0].message.args[0] == "SPI cs_high is no longer supported in " \
+        "kernel 5.4.51 and beyond, so setting parameter cs_high is now ignored!"