Skip to content

Commit

Permalink
Merge pull request #98 from uw-it-aca/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jlaney committed Jan 3, 2023
2 parents 9a99f52 + 5331d87 commit f70141a
Show file tree
Hide file tree
Showing 31 changed files with 44 additions and 32 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- name: Checkout Repo
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.6
python-version: 3.8

- name: Install Dependencies
run: |
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:

needs: test

runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- name: Checkout Repo
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0


Expand Down
2 changes: 1 addition & 1 deletion restclients_core/dao.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

import random
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0


Expand Down
4 changes: 2 additions & 2 deletions restclients_core/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

import re
Expand Down Expand Up @@ -83,7 +83,7 @@ def _get_value(self, field_id):

def _delete(self, field_id):
self._init()
del(self._field_values[field_id])
del (self._field_values[field_id])

def _track_field(self, field):
self._dynamic_fields.add(weakref.ref(field))
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/models/fields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

import datetime
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

# This is just a test runner for coverage
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/dao_implementation/test_backend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase, skipUnless
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/dao_implementation/test_live.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase, skipUnless
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/dao_implementation/test_mock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase, skipIf
Expand Down
4 changes: 2 additions & 2 deletions restclients_core/tests/models/test_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase
Expand Down Expand Up @@ -76,7 +76,7 @@ class ModelTest(models.Model):
self.assertEquals(model.times, now.time())
self.assertEquals(model.urls, "http://example.com/path")

del(model.urls)
del (model.urls)
self.assertIsNone(model.urls)

def test_2_fields_2_instances(self):
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/models/test_clean.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/models/test_http_responses.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from restclients_core.models import CacheHTTP
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/models/test_model_string.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/test_local_cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/test_prometheus.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from restclients_core.tests.dao_implementation.test_backend import TDAO
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/test_thread.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/test_timing_log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from restclients_core.tests.dao_implementation.test_backend import TDAO
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/util/test_decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/util/test_mock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/tests/util/test_retry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from unittest import TestCase
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/thread.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

import threading
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/util/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from commonconf import override_settings
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/util/local_cache.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from threading import currentThread
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/util/mock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

import re
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/util/performance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from threading import currentThread
Expand Down
2 changes: 1 addition & 1 deletion restclients_core/util/retry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 UW-IT, University of Washington
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

from restclients_core.exceptions import DataFailureException
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

import os
from setuptools import setup

Expand Down Expand Up @@ -36,7 +39,7 @@
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.8',
],
)

Expand Down
3 changes: 3 additions & 0 deletions test/live_server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

#!/usr/bin/python
try:
from http.server import BaseHTTPRequestHandler, HTTPServer
Expand Down
3 changes: 3 additions & 0 deletions test/live_ssl_bad_server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

try:
from http.server import BaseHTTPRequestHandler, HTTPServer
except ImportError:
Expand Down
3 changes: 3 additions & 0 deletions test/live_ssl_server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2023 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0

try:
from http.server import BaseHTTPRequestHandler, HTTPServer
except ImportError:
Expand Down

0 comments on commit f70141a

Please sign in to comment.