From 52ed26df68844f14203c05334c6390f7ee60b75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20De=20Keersmaeker?= <francois.dekeersmaeker@uclouvain.be> Date: Tue, 12 Nov 2024 20:53:56 +0000 Subject: [PATCH] Fixed test and package import --- .gitignore | 1 + dns_unbound_cache_reader/__init__.py | 2 +- requirements.txt | 1 + test.py | 4 +++- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 1d17dae..033df5f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .venv +__pycache__ diff --git a/dns_unbound_cache_reader/__init__.py b/dns_unbound_cache_reader/__init__.py index 5e2ad80..7e2a5e2 100644 --- a/dns_unbound_cache_reader/__init__.py +++ b/dns_unbound_cache_reader/__init__.py @@ -1 +1 @@ -from dns_unbound_cache_reader import read_unbound_cache +from .dns_unbound_cache_reader import read_unbound_cache diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2610efb --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +fabric diff --git a/test.py b/test.py index 2b6aa9a..57230b9 100644 --- a/test.py +++ b/test.py @@ -1,3 +1,5 @@ from dns_unbound_cache_reader import read_unbound_cache -read_unbound_cache +remote_host = "linksys-router" +dns_cache = read_unbound_cache(remote_host) +print(dns_cache[0]) -- GitLab