Giter Site home page Giter Site logo

bartste / khalorg Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 0.0 5.81 MB

An interface between org mode and khal cli calendar

Home Page: https://pypi.org/project/khalorg/

License: MIT License

Python 96.48% Shell 3.52%
davmail emacs ical icalendar khal neovim nvim-orgmode org-mode orgparse outlook python3 vdirsyncer

khalorg's People

Contributors

bart-steensma avatar bartste avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

khalorg's Issues

Test are dependend on a khal config file

Problem

Got the following error when running in a workflow:

______________________ TestCalendar.test_datetime_format _______________________
237 tests/test_khal/helpers.py:12: in setUp
238     self.calendar = Calendar('test_calendar')
239 src/khalorg/khal/calendar.py:95: in __init__
240     self.config: dict = get_config(path_config)
241 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
242 
243 config_path = None
244 _get_color_from_vdir = <function get_color_from_vdir at 0x7f23a14f0d30>
245 _get_vdir_type = <function get_vdir_type at 0x7f23a14f0ee0>
246 
247     def get_config(
248             config_path: Optional[str]=None,
249             _get_color_from_vdir: Callable=get_color_from_vdir,
250             _get_vdir_type: Callable=get_vdir_type) -> ConfigObj:
251         """reads the config file, validates it and return a config dict
252     
253         :param config_path: path to a custom config file, if none is given the
254                             default locations will be searched
255         :param _get_color_from_vdir: override get_color_from_vdir for testing purposes
256         :param _get_vdir_type: override get_vdir_type for testing purposes
257         :returns: configuration
258         """
259         if config_path is None:
260             config_path = find_configuration_file()
261         if config_path is None or not os.path.exists(config_path):
262 >           raise NoConfigFile()
263 E           khal.settings.exceptions.NoConfigFile
264 
265 .venv/lib/python3.10/site-packages/khal/settings/settings.py:102: NoConfigFile

Solution

Create a khal config that is used for the test only.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.