Skip to content

Commit

Permalink
Merge branch 'master' into doc_update
Browse files Browse the repository at this point in the history
  • Loading branch information
nstelter-slac committed Sep 24, 2024
2 parents 35049d1 + 59b96c2 commit ac12d66
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
2 changes: 2 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ test:
- pytest
- ipython
- line_profiler
- mongomock
- pcdsutils
- pcdsdevices
- pymongo

about:
dev_url: https://github.com/pcdshub/happi/
Expand Down
22 changes: 22 additions & 0 deletions docs/source/upcoming_release_notes/345-repair_no_changes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
345 repair_no_changes
#################

API Breaks
----------
- N/A

Features
--------
- N/A

Bugfixes
--------
- N/A

Maintenance
-----------
- Fix a few dead links in the docs, add to contributing doc to make 1st time dev instructions bit more clear

Contributors
------------
- N/A
1 change: 1 addition & 0 deletions happi/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def test_beckoff_axis_device_class(mockqsbackend):
assert sam_x.__class__.__name__ == 'IMS'


@requires_mongo
def test_multi_backend(mockmulti, item_info, valve_info):
mm = mockmulti
assert len(mm.all_items) == 3
Expand Down
13 changes: 4 additions & 9 deletions happi/tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# test_cli.py

import cProfile
import functools
import itertools
import logging
import pstats
import re
from collections.abc import Iterable
from typing import Any
Expand Down Expand Up @@ -829,14 +827,11 @@ def test_profile_cli(runner: CliRunner, happi_cfg: str, args: tuple[str]):
print("Resetting the line profiler...")
pcdsutils.profile.reset_profiler()

with cProfile.Profile() as pr:
result = runner.invoke(
happi_cli,
['--path', happi_cfg, 'profile'] + list(args),
)
result = runner.invoke(
happi_cli,
['--path', happi_cfg, 'profile'] + list(args),
)

st = pstats.Stats(pr).strip_dirs().sort_stats("tottime")
st.print_stats(20)
assert_in_expected(
result,
'Profile completed successfully'
Expand Down

0 comments on commit ac12d66

Please sign in to comment.