Skip to content

Commit

Permalink
Added test, updated documentation dependencies to fix readthedocs-sph…
Browse files Browse the repository at this point in the history
…inx-search vulnerability
  • Loading branch information
Forceu committed Jan 16, 2024
1 parent 6e67219 commit 9131355
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
# -- Project information -----------------------------------------------------

project = 'Gokapi Documentation'
copyright = '2021, Marc Ole Bulling'
copyright = '2024, Marc Ole Bulling'
author = 'Marc Ole Bulling'

# The full version, including alpha/beta/rc tags
release = '1.2.1'
release = '1.8.0'


# -- General configuration ---------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx==5.3.0
sphinx_rtd_theme==1.1.1
readthedocs-sphinx-search==0.1.1
sphinx==7.2.6
sphinx_rtd_theme==2.0.0
readthedocs-sphinx-search==0.3.2
12 changes: 12 additions & 0 deletions internal/configuration/database/Database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,18 @@ func TestUploadDefaults(t *testing.T) {
test.IsEqualBool(t, defaults.UnlimitedTime, true)
}

func TestColumnExists(t *testing.T) {
exists, err := ColumnExists("invalid", "invalid")
test.IsEqualBool(t, exists, false)
test.IsNil(t, err)
exists, err = ColumnExists("FileMetaData", "invalid")
test.IsEqualBool(t, exists, false)
test.IsNil(t, err)
exists, err = ColumnExists("FileMetaData", "ExpireAt")
test.IsEqualBool(t, exists, true)
test.IsNil(t, err)
}

func TestGarbageCollectionUploads(t *testing.T) {
orgiginalFunc := currentTime
currentTime = func() time.Time {
Expand Down

0 comments on commit 9131355

Please sign in to comment.