Skip to content

gc tests: replace find() with DB query#41876

Merged
alalazo merged 1 commit intodevelopfrom
fixup-gc-tests
Dec 28, 2023
Merged

gc tests: replace find() with DB query#41876
alalazo merged 1 commit intodevelopfrom
fixup-gc-tests

Conversation

@tgamblin
Copy link
Copy Markdown
Member

Per #41731 (comment), This cleans up the tests for spack gc by replacing

assert <string> in find()

with the more precise

assert mutable_database.query_local(<string>)

Per #41731 (comment), This cleans up
the tests for `spack gc` by replacing

```python
assert <string> in find()
```

with the more precise

```python
assert mutable_database.query_local(<string>)
```
@spackbot-app spackbot-app bot added commands core PR affects Spack core functionality tests General test capability(ies) labels Dec 26, 2023
@tgamblin tgamblin requested a review from haampie December 26, 2023 23:09
@tgamblin tgamblin requested a review from alalazo December 27, 2023 17:18
@alalazo alalazo merged commit 6855512 into develop Dec 28, 2023
@alalazo alalazo deleted the fixup-gc-tests branch December 28, 2023 07:52
@alalazo alalazo self-assigned this Dec 28, 2023
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 25, 2024
Per spack#41731 (comment), This cleans up
the tests for `spack gc` by replacing

```python
assert <string> in find()
```

with the more precise

```python
assert mutable_database.query_local(<string>)
```
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Jan 31, 2024
Per spack#41731 (comment), This cleans up
the tests for `spack gc` by replacing

```python
assert <string> in find()
```

with the more precise

```python
assert mutable_database.query_local(<string>)
```
kwryankrattiger pushed a commit to kwryankrattiger/spack that referenced this pull request Jul 9, 2024
Per spack#41731 (comment), This cleans up
the tests for `spack gc` by replacing

```python
assert <string> in find()
```

with the more precise

```python
assert mutable_database.query_local(<string>)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands core PR affects Spack core functionality tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants