tests package

Submodules

tests.map module

class tests.map.Biz(name, location, description)

Bases: object

Class that represents a buisness object

Parameters:
  • name (str) – The name of the buisiness

  • location (str) – The borough where the buisiness is located

  • description (str) – A description of the buisiness

tests.map.borough()

Ensures the borough entered is a string

Parameters:

none

tests.map.dist()

Ensures distance value is an integer

Parameters:

none

tests.map.inc(x)

Function that increments given integer by 1.

Parameters:

x (int) – The given integer.

tests.map.searchbar()

Ensures seach bar only accepts strings

Parameters:

none

tests.test_Database module

tests.test_Init module

tests.test_Init.anydup(thelist)

Checks if there are any duplicates in the list of buisnesses

Parameters:

thelist (List) – List of Biz objects

tests.test_Init.emptyList(thelist)

Checks if list is empty

Parameters:

thelist (List) – List of Biz objects

Test searchbar method

Parameters:

none

tests.test_Init.test_Bizclass()

Tests if Biz Class creation :param none:

tests.test_Init.test_Bizes()

Tests Biz Class comparison

Parameters:

none

tests.test_Init.test_borough()

Tests if function to ensure borough is a string is working

Parameters:

none

tests.test_Init.test_borough2()

Tests borough function in map.py

Parameters:

none

tests.test_Init.test_dist()

Tests if function to ensure distance is an integer works

Parameters:

none

tests.test_Init.test_dist2()

Tests function that check if distance value is integer

Parameters:

none

tests.test_Init.test_inc()

Tests the increment function

Parameters:

none

Tests the search bar method

Parameters:

none

Module contents