Skip to content

Commit

Permalink
Fixed pytest warnings (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Kokhan <andriy.kokhan@plvision.eu>
  • Loading branch information
andriy-kokhan authored Oct 1, 2023
1 parent 233a896 commit dcde9c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/sai_dut.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def init(self):

# Write to CONFIG_DB SONiC device information needed on syncd start
config_db = redis.Redis(host=self.server_ip, port=self.port, db=4)
config_db.hmset("DEVICE_METADATA|localhost", device_metadata)
config_db.hset("DEVICE_METADATA|localhost", mapping=device_metadata)
config_db.set("CONFIG_DB_INITIALIZED", "1")

def deinit(self):
Expand Down
3 changes: 3 additions & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
markers =
dpu: mark DPU specific tests

0 comments on commit dcde9c0

Please sign in to comment.