Skip to content

Commit

Permalink
add test to website builder
Browse files Browse the repository at this point in the history
  • Loading branch information
mickahell committed Nov 11, 2023
1 parent 7bec917 commit e5fa00d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/runners/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def test_tests_runner_on_simple_repo(self):
runner.cloned_repo_directory = self.simple_project_dir
qiskit_version, result = runner.workload()

self.assertTrue(all(r.has_qiskit_deprecation_logs for r in result))
# Uncomment when qiskit-terra gonna be commonly unused.
#self.assertFalse(all(r.has_qiskit_deprecation_logs for r in result))
self.assertTrue(all(r.ok for r in result))
self.assertTrue(qiskit_version)

Expand Down
5 changes: 5 additions & 0 deletions tests/test_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ def _delete_members_json(self):
if not os.path.exists(self.path):
os.makedirs(self.path)

def test_build_website(self):
"""Test the website builder function."""
manager = Manager(root_path=f"{os.path.abspath(os.getcwd())}/../")
self.assertIsInstance(manager.build_website(), str)

def test_parser_issue(self):
"""Tests issue parsing function.
Function: Manager
Expand Down

0 comments on commit e5fa00d

Please sign in to comment.