Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions irdb/public_html/index.html

This file was deleted.

27 changes: 0 additions & 27 deletions irdb/public_html/index.php

This file was deleted.

18 changes: 0 additions & 18 deletions irdb/public_html/index.rst

This file was deleted.

Empty file removed irdb/repairs/__init__.py
Empty file.
33 changes: 0 additions & 33 deletions irdb/repairs/repair_scripts.py

This file was deleted.

13 changes: 3 additions & 10 deletions irdb/tests/test_package_contents.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Runs the badge reports tests."""

import logging
from pathlib import Path

Expand All @@ -13,13 +14,6 @@
from irdb.badges import BadgeReport
from irdb.fileversions import IRDBFile

# HACK: This is necessary because scopesim has import side effects that mess up
# logging here, specifically capture. Once that's solved, the following
# lines should be removed!
from importlib import reload
logging.shutdown()
reload(logging)


# Note: This module doesn't need to run always, so mark it.
pytestmark = pytest.mark.badges
Expand Down Expand Up @@ -174,8 +168,7 @@ def test_all_dat_files_readable(self, package, pkg_dir, badges, caplog):
for fn_dat in fns_dat:
fn_loc = fn_dat.relative_to(pkg_dir)
try:
# FIXME: DataContainer should be updated to support Path objects...
_ = DataContainer(str(fn_dat))
_ = DataContainer(fn_dat)
except InconsistentTableError as err:
logging.error("%s InconsistentTableError %s", str(fn_loc), err)
bad_files.append(str(fn_loc))
Expand Down
5 changes: 0 additions & 5 deletions irdb/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Tests for irdb.utils
Expand All @@ -19,20 +18,16 @@ def fixture_packages():


class TestGetPackages:
@pytest.mark.usefixtures("packages")
def test_includes_various_packages(self, packages):
wanted = {"Armazones", "ELT", "METIS", "MICADO", "test_package"}
assert all(pkg_name in packages.keys() for pkg_name in wanted)

@pytest.mark.usefixtures("packages")
def test_doesnt_includes_specials(self, packages):
wanted = {"irdb", "docs", "_REPORTS", ".github"}
assert all(pkg_name not in packages.keys() for pkg_name in wanted)

@pytest.mark.usefixtures("packages")
def test_values_are_path_objects(self, packages):
assert isinstance(packages["test_package"], Path)

@pytest.mark.usefixtures("packages")
def test_only_includes_dirs(self, packages):
assert all(path.is_dir() for path in packages.values())
11 changes: 0 additions & 11 deletions irdb/version.py

This file was deleted.