mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 15:02:43 +00:00
chore: Remove GetTopicByName
- Introduced in bec69f702b
and removed in
the same commit (only usage was in testing code).
This commit is contained in:
parent
5813244ff8
commit
a52b610eff
3 changed files with 1 additions and 39 deletions
|
@ -52,8 +52,7 @@ func TestAddTopic(t *testing.T) {
|
|||
require.NoError(t, repo_model.SaveTopics(db.DefaultContext, 2, "golang", "gitea"))
|
||||
repo2NrOfTopics = 2
|
||||
totalNrOfTopics++
|
||||
topic, err := repo_model.GetTopicByName(db.DefaultContext, "gitea")
|
||||
require.NoError(t, err)
|
||||
topic := unittest.AssertExistsAndLoadBean(t, &repo_model.Topic{Name: "gitea"})
|
||||
assert.EqualValues(t, 1, topic.RepoCount)
|
||||
|
||||
topics, _, err = repo_model.FindTopics(db.DefaultContext, &repo_model.FindTopicOptions{})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue