Skip to content

Run Nosetests via GitHub Actions#332

Open
peternewman wants to merge 25 commits into
OpenLightingProject:masterfrom
peternewman:nosetests
Open

Run Nosetests via GitHub Actions#332
peternewman wants to merge 25 commits into
OpenLightingProject:masterfrom
peternewman:nosetests

Conversation

@peternewman

Copy link
Copy Markdown
Member

No description provided.

Comment thread data/controller_test.py
globals = {}
locals = {}
execfile("data/controller_data.py", globals, locals)
# Python 2 and 3 compatible version of execfile

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need Python2-compatibility in 2026 any more?

(0x00B9, "http://en.gzsjlight.com/"),
(0x00A9, "http://www.richter-lt.de/"),
(0x00B0, "https://arenaluci.it/en/"),
# (0x00B9, "http://en.gzsjlight.com/"), # Website currently gone

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have an automatic test for that? Or do you manually check them from time to time?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ok, I see the Python script for that down below. Solved.

@@ -134,17 +134,17 @@
(0x4C73, "http://www.lsclighting.com/"),
(0x4D41, "http://www.malighting.com/"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should be https as well? Or is it up to them to update their address to some DB that we just fetch from?

Comment thread data/manufacturer_test.py
self.fail("Link %s failed due to socket error %s" % (link, e.errno))
else:
self.assertEqual(response.code, 200,
self.assertTrue(((response.code == 200) or (response.code == 202)),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is an HTTP 307 also a success?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants