Skip to content

Commit

Permalink
pytest: Dont abuse pyosdp namespace
Browse files Browse the repository at this point in the history
Currently the python bindings for LibOSDP uses the "pyosdp" namespace.
pytests has its own wrapper around the python C extension to simplify
some testing access which also used "pyosdp" name this module. This is
causing some level of confusions occasionally.

Rename it as "testlib" to be more descriptive of what is it.

Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Aug 28, 2021
1 parent 96f3fb8 commit 77625d9
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pytest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import pytest

from pyosdp import *
from testlib import *

class TestUtils:
def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion pytest/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import time
import pytest

from pyosdp import *
from testlib import *

pd_cap = PDCapabilities([
(Capability.OutputControl, 1, 1),
Expand Down
2 changes: 1 addition & 1 deletion pytest/test_file_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import time
import random

from pyosdp import *
from testlib import *

sender_data = [ random.randint(0, 255) for _ in range(4096) ]

Expand Down
2 changes: 1 addition & 1 deletion pytest/test_sc_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#

from pyosdp import *
from testlib import *

def test_set_new_scbk(utils):
# Create single CP-PD pair
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 77625d9

Please sign in to comment.