aboutsummaryrefslogtreecommitdiffstats
path: root/pyagl
diff options
context:
space:
mode:
authorEdi Feschiyan <efeschiyan@pm.me>2020-08-31 10:35:02 +0300
committerEdi Feschiyan <efeschiyan@pm.me>2020-08-31 10:35:02 +0300
commit4a763058a63b6d1574958847898fe22a6cc0a62c (patch)
tree7a32dd3a447c791f585b61ac6598ffafb2b03193 /pyagl
parent93c5a477ac3c8b2505255f9ebfba18e11c2ea3db (diff)
parentb8db712d08eb888c6d41826b5fb2fd7bb2e18d66 (diff)
Merge branch 'master' of gitlab.com:konsulko/internal/pyagl into master
 Conflicts:  pyagl/tests/test_audiomixer.py  pyagl/tests/test_bluetooth.py
Diffstat (limited to 'pyagl')
-rw-r--r--pyagl/conftest.py15
-rw-r--r--pyagl/services/audiomixer.py15
-rw-r--r--pyagl/services/base.py15
-rw-r--r--pyagl/services/bluetooth.py15
-rw-r--r--pyagl/services/bluetooth_map.py15
-rw-r--r--pyagl/services/bluetooth_pbap.py15
-rw-r--r--pyagl/services/can.py15
-rw-r--r--pyagl/services/geoclue.py15
-rw-r--r--pyagl/services/gps.py15
-rw-r--r--pyagl/services/homescreen.py15
-rw-r--r--pyagl/services/mediaplayer.py15
-rw-r--r--pyagl/services/mediascanner.py15
-rw-r--r--pyagl/services/network.py15
-rw-r--r--pyagl/services/nfc.py15
-rw-r--r--pyagl/services/signal_composer.py15
-rw-r--r--pyagl/services/taskmanager.py17
-rw-r--r--pyagl/services/weather.py15
-rw-r--r--pyagl/tests/test_audiomixer.py33
-rw-r--r--pyagl/tests/test_bluetooth.py17
-rw-r--r--pyagl/tests/test_bluetooth_map.py15
-rw-r--r--pyagl/tests/test_bluetooth_pbap.py15
-rw-r--r--pyagl/tests/test_geoclue.py17
-rw-r--r--pyagl/tests/test_gps.py17
-rw-r--r--pyagl/tests/test_homescreen.py15
-rw-r--r--pyagl/tests/test_mediascanner.py15
-rw-r--r--pyagl/tests/test_network.py17
-rw-r--r--pyagl/tests/test_nfc.py15
-rw-r--r--pyagl/tests/test_signal_composer.py17
-rw-r--r--pyagl/tests/test_weather.py15
29 files changed, 453 insertions, 12 deletions
diff --git a/pyagl/conftest.py b/pyagl/conftest.py
index 25cdb02..6002de7 100644
--- a/pyagl/conftest.py
+++ b/pyagl/conftest.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import pytest
diff --git a/pyagl/services/audiomixer.py b/pyagl/services/audiomixer.py
index 9cb1100..6e447b7 100644
--- a/pyagl/services/audiomixer.py
+++ b/pyagl/services/audiomixer.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/base.py b/pyagl/services/base.py
index 17dddb8..0ffbcde 100644
--- a/pyagl/services/base.py
+++ b/pyagl/services/base.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from subprocess import check_output
from json import JSONDecodeError
from parse import Result, parse
diff --git a/pyagl/services/bluetooth.py b/pyagl/services/bluetooth.py
index 309ff93..e5412cf 100644
--- a/pyagl/services/bluetooth.py
+++ b/pyagl/services/bluetooth.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/bluetooth_map.py b/pyagl/services/bluetooth_map.py
index e434576..8968842 100644
--- a/pyagl/services/bluetooth_map.py
+++ b/pyagl/services/bluetooth_map.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/bluetooth_pbap.py b/pyagl/services/bluetooth_pbap.py
index 9ac0dea..c437148 100644
--- a/pyagl/services/bluetooth_pbap.py
+++ b/pyagl/services/bluetooth_pbap.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import json
from pprint import pprint
diff --git a/pyagl/services/can.py b/pyagl/services/can.py
index 7e8df9a..e22b840 100644
--- a/pyagl/services/can.py
+++ b/pyagl/services/can.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import json
diff --git a/pyagl/services/geoclue.py b/pyagl/services/geoclue.py
index 5e5b443..a0a26dc 100644
--- a/pyagl/services/geoclue.py
+++ b/pyagl/services/geoclue.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/gps.py b/pyagl/services/gps.py
index e91e9df..e4cd923 100644
--- a/pyagl/services/gps.py
+++ b/pyagl/services/gps.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/homescreen.py b/pyagl/services/homescreen.py
index 4af47d9..13275a0 100644
--- a/pyagl/services/homescreen.py
+++ b/pyagl/services/homescreen.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/mediaplayer.py b/pyagl/services/mediaplayer.py
index 2157e02..d1e9137 100644
--- a/pyagl/services/mediaplayer.py
+++ b/pyagl/services/mediaplayer.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
from typing import Union
import logging
diff --git a/pyagl/services/mediascanner.py b/pyagl/services/mediascanner.py
index 615b5a9..e3016ec 100644
--- a/pyagl/services/mediascanner.py
+++ b/pyagl/services/mediascanner.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/network.py b/pyagl/services/network.py
index 8aa6f82..1c953b3 100644
--- a/pyagl/services/network.py
+++ b/pyagl/services/network.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/nfc.py b/pyagl/services/nfc.py
index 8e333a1..4617afc 100644
--- a/pyagl/services/nfc.py
+++ b/pyagl/services/nfc.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
diff --git a/pyagl/services/signal_composer.py b/pyagl/services/signal_composer.py
index d6b90cc..3d0fa71 100644
--- a/pyagl/services/signal_composer.py
+++ b/pyagl/services/signal_composer.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
diff --git a/pyagl/services/taskmanager.py b/pyagl/services/taskmanager.py
index 96f98d2..bdeb86d 100644
--- a/pyagl/services/taskmanager.py
+++ b/pyagl/services/taskmanager.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import os
@@ -8,4 +23,4 @@ class TaskManagerService(AGLBaseService):
parser = AGLBaseService.getparser()
def __init__(self, ip, port=None, service='agl-service-taskmanager'):
- super().__init__(api='taskmanager', ip=ip, port=port, service=service) \ No newline at end of file
+ super().__init__(api='taskmanager', ip=ip, port=port, service=service)
diff --git a/pyagl/services/weather.py b/pyagl/services/weather.py
index c5ce95c..e5be8c0 100644
--- a/pyagl/services/weather.py
+++ b/pyagl/services/weather.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
from pyagl.services.base import AGLBaseService, AFBResponse
import asyncio
import json
diff --git a/pyagl/tests/test_audiomixer.py b/pyagl/tests/test_audiomixer.py
index 5479521..ce13530 100644
--- a/pyagl/tests/test_audiomixer.py
+++ b/pyagl/tests/test_audiomixer.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
@@ -34,7 +49,8 @@ async def test_list_controls(event_loop, service: AMS):
assert resp.status == 'success'
-@pytest.mark.regular
+@pytest.mark.hwrequired
+@pytest.mark.audiomixer
async def test_volume_verb(event_loop, service: AMS):
msgid = await service.volume()
resp = await service.afbresponse()
@@ -43,7 +59,8 @@ async def test_volume_verb(event_loop, service: AMS):
assert resp.status == 'success'
-@pytest.mark.regular
+@pytest.mark.hwrequired
+@pytest.mark.audiomixer
async def test_set_volume0(event_loop, service: AMS):
msgid = await service.volume(value=0)
resp = await service.afbresponse()
@@ -52,7 +69,8 @@ async def test_set_volume0(event_loop, service: AMS):
assert resp.status == 'success'
-@pytest.mark.regular
+@pytest.mark.hwrequired
+@pytest.mark.audiomixer
async def test_set_maxvolume(event_loop, service: AMS):
msgid = await service.volume(value=1)
resp = await service.afbresponse()
@@ -61,7 +79,8 @@ async def test_set_maxvolume(event_loop, service: AMS):
assert resp.status == 'success'
-@pytest.mark.regular
+@pytest.mark.hwrequired
+@pytest.mark.audiomixer
async def test_get_mute(event_loop, service: AMS):
msgid = await service.mute()
resp = await service.afbresponse()
@@ -70,7 +89,8 @@ async def test_get_mute(event_loop, service: AMS):
assert resp.status == 'success'
-@pytest.mark.regular
+@pytest.mark.hwrequired
+@pytest.mark.audiomixer
async def test_set_mute(event_loop, service: AMS):
msgid = await service.mute(value=1)
resp = await service.afbresponse()
@@ -79,7 +99,8 @@ async def test_set_mute(event_loop, service: AMS):
assert resp.status == 'success'
-@pytest.mark.regular
+@pytest.mark.hwrequired
+@pytest.mark.audiomixer
async def test_set_unmute(event_loop, service: AMS):
msgid = await service.mute(value=0)
resp = await service.afbresponse()
diff --git a/pyagl/tests/test_bluetooth.py b/pyagl/tests/test_bluetooth.py
index 78f1d21..1af2dda 100644
--- a/pyagl/tests/test_bluetooth.py
+++ b/pyagl/tests/test_bluetooth.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
@@ -118,7 +133,7 @@ async def test_has_single_adapter(event_loop, service: BTS):
f'Detected {len(resp.data["adapters"])} adapters. Multiple adapters may also affect testing'
-@pytest.mark.regular
+@pytest.mark.hwrequired
@pytest.mark.dependency(depends=['test_default_adapter'])
async def test_adapter_state(event_loop, service: BTS):
msgid = await service.adapter_state('hci0')
diff --git a/pyagl/tests/test_bluetooth_map.py b/pyagl/tests/test_bluetooth_map.py
index f750347..fee0916 100644
--- a/pyagl/tests/test_bluetooth_map.py
+++ b/pyagl/tests/test_bluetooth_map.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
diff --git a/pyagl/tests/test_bluetooth_pbap.py b/pyagl/tests/test_bluetooth_pbap.py
index c76a15f..b70c914 100644
--- a/pyagl/tests/test_bluetooth_pbap.py
+++ b/pyagl/tests/test_bluetooth_pbap.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
diff --git a/pyagl/tests/test_geoclue.py b/pyagl/tests/test_geoclue.py
index 7a1ec23..6bc6cad 100644
--- a/pyagl/tests/test_geoclue.py
+++ b/pyagl/tests/test_geoclue.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
@@ -46,4 +61,4 @@ async def test_subscribe(event_loop, service: gcs):
async def test_unsubscribe(event_loop, service: gcs):
msgid = await service.unsubscribe()
resp = await service.afbresponse()
- assert resp.status == 'success' \ No newline at end of file
+ assert resp.status == 'success'
diff --git a/pyagl/tests/test_gps.py b/pyagl/tests/test_gps.py
index d9f0562..3f47684 100644
--- a/pyagl/tests/test_gps.py
+++ b/pyagl/tests/test_gps.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
@@ -101,4 +116,4 @@ async def test_unsubscribe(event_loop, service: GPS):
msgid = await service.unsubscribe('location')
resp = await service.afbresponse()
assert resp.msgid == msgid
- assert resp.status == 'success' \ No newline at end of file
+ assert resp.status == 'success'
diff --git a/pyagl/tests/test_homescreen.py b/pyagl/tests/test_homescreen.py
index 758feb3..35ffd0d 100644
--- a/pyagl/tests/test_homescreen.py
+++ b/pyagl/tests/test_homescreen.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
diff --git a/pyagl/tests/test_mediascanner.py b/pyagl/tests/test_mediascanner.py
index 2ca10cc..a4d57ee 100644
--- a/pyagl/tests/test_mediascanner.py
+++ b/pyagl/tests/test_mediascanner.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
diff --git a/pyagl/tests/test_network.py b/pyagl/tests/test_network.py
index 53653cf..2eb4ebc 100644
--- a/pyagl/tests/test_network.py
+++ b/pyagl/tests/test_network.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
@@ -25,7 +40,7 @@ async def service():
@pytest.fixture(scope='module')
def expected_available_techs():
- techs = os.environ.get('AGL_AVAILABLE_TECHS', 'wifi,ethernet,bluetooth').split(',')
+ techs = os.environ.get('AGL_AVAILABLE_INTERFACES', 'wifi,ethernet,bluetooth').split(',')
return techs
diff --git a/pyagl/tests/test_nfc.py b/pyagl/tests/test_nfc.py
index 4695295..d7b3334 100644
--- a/pyagl/tests/test_nfc.py
+++ b/pyagl/tests/test_nfc.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
diff --git a/pyagl/tests/test_signal_composer.py b/pyagl/tests/test_signal_composer.py
index 6dd872c..cafa052 100644
--- a/pyagl/tests/test_signal_composer.py
+++ b/pyagl/tests/test_signal_composer.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest
@@ -71,4 +86,4 @@ async def test_subscribe(event_loop, service: scs):
async def test_unsubscribe(event_loop, service: scs):
msgid = await service.unsubscribe({'service': 'longitude'})
resp = await service.afbresponse()
- assert resp.status == 'success' \ No newline at end of file
+ assert resp.status == 'success'
diff --git a/pyagl/tests/test_weather.py b/pyagl/tests/test_weather.py
index c83a2fa..2c68152 100644
--- a/pyagl/tests/test_weather.py
+++ b/pyagl/tests/test_weather.py
@@ -1,3 +1,18 @@
+# Copyright (C) 2020 Konsulko Group
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
import asyncio
import os
import pytest